From 79b2cf15c8d563dc5a3ea589ea1c4a29ee1315e8 Mon Sep 17 00:00:00 2001 From: "kali kaneko (leap communications)" Date: Thu, 27 Feb 2020 18:06:22 +0100 Subject: [feat] listen on available port --- pkg/helper/linux.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'pkg/helper/linux.go') diff --git a/pkg/helper/linux.go b/pkg/helper/linux.go index 3aaa0fe..5aa7e14 100644 --- a/pkg/helper/linux.go +++ b/pkg/helper/linux.go @@ -20,6 +20,7 @@ import ( "log" "os" "os/exec" + "strconv" "0xacab.org/leap/bitmask-vpn/pkg/config" ) @@ -46,8 +47,8 @@ func parseCliArgs() { func daemonize() {} -func doHandleCommands(bindAddr string) { - runCommandServer(bindAddr) +func doHandleCommands(port int) { + runCommandServer("localhost:" + strconv.Itoa(port)) } func getOpenvpnPath() string { -- cgit v1.2.3