summaryrefslogtreecommitdiff
path: root/bitmask/darwin.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/darwin.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/darwin.go')
-rw-r--r--bitmask/darwin.go10
1 files changed, 9 insertions, 1 deletions
diff --git a/bitmask/darwin.go b/bitmask/darwin.go
index 32a9b07..f425078 100644
--- a/bitmask/darwin.go
+++ b/bitmask/darwin.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") + "/Library/Preferences/leap"
+
+func hasCurve() bool {
+ return zmq4.HasCurve()
+}