Ver Fonte

cmd/geth: honor datadir when attaching

Kobi Gurkan há 10 anos atrás
pai
commit
1a86adc5a2
1 ficheiros alterados com 1 adições e 1 exclusões
  1. 1 1
      cmd/geth/main.go

+ 1 - 1
cmd/geth/main.go

@@ -402,7 +402,7 @@ func attach(ctx *cli.Context) {
 		client, err = comms.ClientFromEndpoint(ctx.Args().First(), codec.JSON)
 	} else {
 		cfg := comms.IpcConfig{
-			Endpoint: ctx.GlobalString(utils.IPCPathFlag.Name),
+			Endpoint: utils.IpcSocketPath(ctx),
 		}
 		client, err = comms.NewIpcClient(cfg, codec.JSON)
 	}