diff options
author | kali kaneko (leap communications) <kali@leap.se> | 2020-02-27 18:06:22 +0100 |
---|---|---|
committer | kali kaneko (leap communications) <kali@leap.se> | 2020-04-30 22:10:16 +0200 |
commit | 79b2cf15c8d563dc5a3ea589ea1c4a29ee1315e8 (patch) | |
tree | 31a4b799028f0dbc5ea5b2a7e0285e41d8b97a8e /pkg/helper/helper.go | |
parent | d1bbf9609672409120c23f989c1298fbb8b66152 (diff) |
[feat] listen on available port
Diffstat (limited to 'pkg/helper/helper.go')
-rw-r--r-- | pkg/helper/helper.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pkg/helper/helper.go b/pkg/helper/helper.go index ab1894e..b5404c2 100644 --- a/pkg/helper/helper.go +++ b/pkg/helper/helper.go @@ -37,10 +37,10 @@ func runCommandServer(bindAddr string) { log.Fatal(http.ListenAndServe(bindAddr, nil)) } -func ServeHTTP(bindAddr string) { +func ServeHTTP(port int) { parseCliArgs() daemonize() - doHandleCommands(bindAddr) + doHandleCommands(port) } func (openvpn *openvpnT) start(w http.ResponseWriter, r *http.Request) { |