Skip to content

Commit ebbe25e

Browse files
committed
Merge pull request #1764 from kobigurk/honor_ipc_datadir
honors datadir when attaching
2 parents e988545 + 1a86adc commit ebbe25e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmd/geth/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -402,7 +402,7 @@ func attach(ctx *cli.Context) {
402402
client, err = comms.ClientFromEndpoint(ctx.Args().First(), codec.JSON)
403403
} else {
404404
cfg := comms.IpcConfig{
405-
Endpoint: ctx.GlobalString(utils.IPCPathFlag.Name),
405+
Endpoint: utils.IpcSocketPath(ctx),
406406
}
407407
client, err = comms.NewIpcClient(cfg, codec.JSON)
408408
}

0 commit comments

Comments
 (0)