summaryrefslogtreecommitdiff
path: root/pkg/helper/helper.go
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/helper/helper.go')
-rw-r--r--pkg/helper/helper.go4
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) {