fixed windows ipc path issue

This commit is contained in:
Bas van Kervel
2015-06-12 09:32:37 +02:00
parent 22080e1fdd
commit 359e6414e5
4 changed files with 27 additions and 4 deletions

View File

@ -95,6 +95,9 @@ func DefaultDataDir() string {
}
func DefaultIpcPath() string {
if runtime.GOOS == "windows" {
return `\\.\pipe\geth.ipc`
}
return filepath.Join(DefaultDataDir(), "geth.ipc")
}