summaryrefslogtreecommitdiff
path: root/bitmask/unix.go
diff options
context:
space:
mode:
authorRuben Pollan <meskio@sindominio.net>2018-05-26 13:51:45 +0200
committerRuben Pollan <meskio@sindominio.net>2018-05-26 13:51:45 +0200
commit9ad429d7030a3b07286fdc63f62181783149f494 (patch)
tree89e7eba6bb0b8274adb77d4e889788567e091359 /bitmask/unix.go
parent3681fd33051eec54d79542205c7409c3573399bf (diff)
[pkg] windows doesn't have curve
Let's have our own hasCurve() func to don't use curve if is windows.
Diffstat (limited to 'bitmask/unix.go')
-rw-r--r--bitmask/unix.go10
1 files changed, 9 insertions, 1 deletions
diff --git a/bitmask/unix.go b/bitmask/unix.go
index a976857..321f1c0 100644
--- a/bitmask/unix.go
+++ b/bitmask/unix.go
@@ -16,8 +16,16 @@
package bitmask
-import "os"
+import (
+ "os"
+
+ "github.com/pebbe/zmq4"
+)
const coreEndpoint = "ipc:///var/tmp/bitmask.core.sock"
var ConfigPath = os.Getenv("HOME") + "/.config/leap"
+
+func hasCurve() bool {
+ return zmq4.HasCurve()
+}