diff options
Diffstat (limited to 'common/path.go')
-rw-r--r-- | common/path.go | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/common/path.go b/common/path.go index 3468b3366..6e3259656 100644 --- a/common/path.go +++ b/common/path.go @@ -94,6 +94,13 @@ func DefaultDataDir() string { } } +func DefaultIpcPath() string { + if runtime.GOOS == "windows" { + return `\\.\pipe\geth.ipc` + } + return filepath.Join(DefaultDataDir(), "geth.ipc") +} + func IsWindows() bool { return runtime.GOOS == "windows" } |