From 188ab928c3f2a2eac5ee0f7ac42cbf2f35568bcd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C3=A9ter=20Szil=C3=A1gyi?= <peterke@gmail.com> Date: Tue, 2 Feb 2016 19:06:43 +0200 Subject: cmd, common, node, rpc: move IPC into the node itself --- common/path.go | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'common/path.go') 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" } -- cgit v1.2.3