diff options
author | Bas van Kervel <bas@ethdev.com> | 2015-07-02 23:20:58 +0800 |
---|---|---|
committer | Bas van Kervel <bas@ethdev.com> | 2015-07-02 23:20:58 +0800 |
commit | 89525fcb4e6dcd180ce231e2addb739bf0f9dbc5 (patch) | |
tree | d38a35ebdab5c290ca440550bc10ca3a59daa55c | |
parent | c2590af7fda0c224cab5c0ebcb6973d6da447055 (diff) | |
download | go-tangerine-89525fcb4e6dcd180ce231e2addb739bf0f9dbc5.tar.gz go-tangerine-89525fcb4e6dcd180ce231e2addb739bf0f9dbc5.tar.zst go-tangerine-89525fcb4e6dcd180ce231e2addb739bf0f9dbc5.zip |
ipcpath issue fix
-rw-r--r-- | cmd/utils/flags.go | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/cmd/utils/flags.go b/cmd/utils/flags.go index 0d59980ec..f9458f346 100644 --- a/cmd/utils/flags.go +++ b/cmd/utils/flags.go @@ -438,17 +438,17 @@ func MakeAccountManager(ctx *cli.Context) *accounts.Manager { func IpcSocketPath(ctx *cli.Context) (ipcpath string) { if common.IsWindows() { ipcpath = common.DefaultIpcPath() - if ipcpath != ctx.GlobalString(IPCPathFlag.Name) { + if ctx.GlobalIsSet(IPCPathFlag.Name) { ipcpath = ctx.GlobalString(IPCPathFlag.Name) } } else { ipcpath = common.DefaultIpcPath() - if ctx.GlobalString(IPCPathFlag.Name) != common.DefaultIpcPath() { - ipcpath = ctx.GlobalString(IPCPathFlag.Name) - } else if ctx.GlobalString(DataDirFlag.Name) != "" && - ctx.GlobalString(DataDirFlag.Name) != common.DefaultDataDir() { + if ctx.GlobalIsSet(DataDirFlag.Name) { ipcpath = filepath.Join(ctx.GlobalString(DataDirFlag.Name), "geth.ipc") } + if ctx.GlobalIsSet(IPCPathFlag.Name) { + ipcpath = ctx.GlobalString(IPCPathFlag.Name) + } } return |