summaryrefslogtreecommitdiff
path: root/pkg/helper/darwin.go
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/helper/darwin.go')
-rw-r--r--pkg/helper/darwin.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/pkg/helper/darwin.go b/pkg/helper/darwin.go
index f65012d..7f68243 100644
--- a/pkg/helper/darwin.go
+++ b/pkg/helper/darwin.go
@@ -33,6 +33,7 @@ import (
"os"
"os/exec"
"path"
+ "strconv"
"strings"
"0xacab.org/leap/bitmask-vpn/pkg/config"
@@ -86,8 +87,8 @@ func daemonize() {
log.Print("bitmask-helper daemon started")
}
-func doHandleCommands(bindAddr string) {
- runCommandServer(bindAddr)
+func doHandleCommands(port int) {
+ runCommandServer("localhost:" + strconv.Itoa(port))
}
func getOpenvpnPath() string {