aboutsummaryrefslogtreecommitdiffstats
path: root/common/path.go
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2015-06-16 01:28:48 +0800
committerobscuren <geffobscura@gmail.com>2015-06-16 01:28:48 +0800
commit5daf8729be88eca87b302ebf7a46fc69cad0f6d0 (patch)
tree0053cb5b84978645b3c83895a651c512e081a183 /common/path.go
parentbac9a94ddf20dc530966cbf6cd384aaf94aedc77 (diff)
parent4673b04503742de9b1622557b44135d6a4934ad6 (diff)
downloaddexon-5daf8729be88eca87b302ebf7a46fc69cad0f6d0.tar
dexon-5daf8729be88eca87b302ebf7a46fc69cad0f6d0.tar.gz
dexon-5daf8729be88eca87b302ebf7a46fc69cad0f6d0.tar.bz2
dexon-5daf8729be88eca87b302ebf7a46fc69cad0f6d0.tar.lz
dexon-5daf8729be88eca87b302ebf7a46fc69cad0f6d0.tar.xz
dexon-5daf8729be88eca87b302ebf7a46fc69cad0f6d0.tar.zst
dexon-5daf8729be88eca87b302ebf7a46fc69cad0f6d0.zip
Merge branch 'release/0.9.30'
Diffstat (limited to 'common/path.go')
-rw-r--r--common/path.go7
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"
}