diff options
author | kali kaneko (leap communications) <kali@leap.se> | 2020-04-22 23:52:04 +0200 |
---|---|---|
committer | kali kaneko (leap communications) <kali@leap.se> | 2020-04-30 22:10:27 +0200 |
commit | e05f5aa352f6ba55562a0afade0fa9046aeaf0d1 (patch) | |
tree | e225f9c4cb33cd5d0b0fb2b1c9b4a07c47d836a4 /pkg/helper/darwin.go | |
parent | e3baef0e9e36e1b0f3e899ef8e83520004b50a29 (diff) |
[pkg] initialize service early for windows
Diffstat (limited to 'pkg/helper/darwin.go')
-rw-r--r-- | pkg/helper/darwin.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pkg/helper/darwin.go b/pkg/helper/darwin.go index 3f8dc2f..e43c33c 100644 --- a/pkg/helper/darwin.go +++ b/pkg/helper/darwin.go @@ -87,11 +87,11 @@ func daemonize() { log.Print("bitmask-helper daemon started") } -func doHandleCommands(preferredPort int) { +func runServer(preferredPort int) { port := getFirstAvailablePortFrom(preferredPort) writePortToFile(port) bindAddr := "localhost:" + strconv.Itoa(port) - runCommandServer(bindAddr) + serveHTTP(bindAddr) } func getOpenvpnPath() string { |