diff options
author | Péter Szilágyi <peterke@gmail.com> | 2016-02-03 01:06:43 +0800 |
---|---|---|
committer | Péter Szilágyi <peterke@gmail.com> | 2016-02-04 17:23:15 +0800 |
commit | 188ab928c3f2a2eac5ee0f7ac42cbf2f35568bcd (patch) | |
tree | eaeebfbe371a9ae8e801bd934d7dd850c7354765 /common | |
parent | 3274db19c7563e31f79418b63f6c10233cbaa32a (diff) | |
download | go-tangerine-188ab928c3f2a2eac5ee0f7ac42cbf2f35568bcd.tar.gz go-tangerine-188ab928c3f2a2eac5ee0f7ac42cbf2f35568bcd.tar.zst go-tangerine-188ab928c3f2a2eac5ee0f7ac42cbf2f35568bcd.zip |
cmd, common, node, rpc: move IPC into the node itself
Diffstat (limited to 'common')
-rw-r--r-- | common/path.go | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/common/path.go b/common/path.go index 9ba2f93c0..38c213a12 100644 --- a/common/path.go +++ b/common/path.go @@ -89,9 +89,8 @@ func DefaultDataDir() string { return "" } -func DefaultIpcPath() string { - if runtime.GOOS == "windows" { - return `\\.\pipe\geth.ipc` - } - return filepath.Join(DefaultDataDir(), "geth.ipc") +// DefaultIpcSocket returns the relative name of the default IPC socket. The path +// resolution is done by a node with other contextual infos. +func DefaultIpcSocket() string { + return "geth.ipc" } |