aboutsummaryrefslogtreecommitdiffstats
path: root/common
diff options
context:
space:
mode:
authorPéter Szilágyi <peterke@gmail.com>2016-02-05 17:33:24 +0800
committerPéter Szilágyi <peterke@gmail.com>2016-02-05 17:33:24 +0800
commitba7c125153ce1be30985784a18edf38645406d03 (patch)
tree92c1e2b8ec6ef0d4b39381148b3497e311e80b95 /common
parent212828963172b3921827df15abdc8602480e947d (diff)
parent188ab928c3f2a2eac5ee0f7ac42cbf2f35568bcd (diff)
downloadgo-tangerine-ba7c125153ce1be30985784a18edf38645406d03.tar
go-tangerine-ba7c125153ce1be30985784a18edf38645406d03.tar.gz
go-tangerine-ba7c125153ce1be30985784a18edf38645406d03.tar.bz2
go-tangerine-ba7c125153ce1be30985784a18edf38645406d03.tar.lz
go-tangerine-ba7c125153ce1be30985784a18edf38645406d03.tar.xz
go-tangerine-ba7c125153ce1be30985784a18edf38645406d03.tar.zst
go-tangerine-ba7c125153ce1be30985784a18edf38645406d03.zip
Merge pull request #2168 from karalabe/move-rpc-into-node
cmd, common, node, rpc: move IPC into the node itself
Diffstat (limited to 'common')
-rw-r--r--common/path.go9
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"
}