From 9ad429d7030a3b07286fdc63f62181783149f494 Mon Sep 17 00:00:00 2001 From: Ruben Pollan Date: Sat, 26 May 2018 13:51:45 +0200 Subject: [pkg] windows doesn't have curve Let's have our own hasCurve() func to don't use curve if is windows. --- bitmask/darwin.go | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'bitmask/darwin.go') 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() +} -- cgit v1.2.3