Commit ebbe25ee authored by Péter Szilágyi's avatar Péter Szilágyi

Merge pull request #1764 from kobigurk/honor_ipc_datadir

honors datadir when attaching
parents e9885458 1a86adc5
......@@ -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)
}
......
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