summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKali Kaneko (leap communications) <kali@leap.se>2018-03-05 00:49:47 +0100
committerKali Kaneko (leap communications) <kali@leap.se>2018-03-05 00:49:47 +0100
commit1f08eede41776b2a4bfe845e21236200dd1aef4c (patch)
tree1fa28a34375406de5bacb72747d92b7eee21f583
parent0b71ba75ec7ffe7338977edaf2452ee8bf23ba25 (diff)
use /var/tmp in all cases for socket
-rw-r--r--bitmask/main.go5
1 files changed, 1 insertions, 4 deletions
diff --git a/bitmask/main.go b/bitmask/main.go
index f15b3f8..29263ac 100644
--- a/bitmask/main.go
+++ b/bitmask/main.go
@@ -102,10 +102,7 @@ func initCore() (*zmq4.Socket, error) {
return nil, err
}
- endpointPwd := "/tmp"
- if os.Getenv("SNAP") != "" {
- endpointPwd = "/var/tmp"
- }
+ endpointPwd := "/var/tmp"
err = socket.Connect(fmt.Sprintf(coreEndpoint, endpointPwd))
return socket, err
}