Commit 1a86adc5 authored by Kobi Gurkan's avatar Kobi Gurkan

cmd/geth: honor datadir when attaching

parent e9885458
...@@ -402,7 +402,7 @@ func attach(ctx *cli.Context) { ...@@ -402,7 +402,7 @@ func attach(ctx *cli.Context) {
client, err = comms.ClientFromEndpoint(ctx.Args().First(), codec.JSON) client, err = comms.ClientFromEndpoint(ctx.Args().First(), codec.JSON)
} else { } else {
cfg := comms.IpcConfig{ cfg := comms.IpcConfig{
Endpoint: ctx.GlobalString(utils.IPCPathFlag.Name), Endpoint: utils.IpcSocketPath(ctx),
} }
client, err = comms.NewIpcClient(cfg, codec.JSON) client, err = comms.NewIpcClient(cfg, codec.JSON)
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment