summaryrefslogtreecommitdiff
path: root/pkg/helper/windows_service.go
diff options
context:
space:
mode:
authorkali kaneko (leap communications) <kali@leap.se>2020-02-27 18:06:22 +0100
committerkali kaneko (leap communications) <kali@leap.se>2020-04-30 22:10:16 +0200
commit79b2cf15c8d563dc5a3ea589ea1c4a29ee1315e8 (patch)
tree31a4b799028f0dbc5ea5b2a7e0285e41d8b97a8e /pkg/helper/windows_service.go
parentd1bbf9609672409120c23f989c1298fbb8b66152 (diff)
[feat] listen on available port
Diffstat (limited to 'pkg/helper/windows_service.go')
-rw-r--r--pkg/helper/windows_service.go5
1 files changed, 1 insertions, 4 deletions
diff --git a/pkg/helper/windows_service.go b/pkg/helper/windows_service.go
index b35ba19..82f6e2b 100644
--- a/pkg/helper/windows_service.go
+++ b/pkg/helper/windows_service.go
@@ -8,8 +8,6 @@ package helper
import (
"fmt"
- //"strings"
- //"time"
"golang.org/x/sys/windows/svc"
"golang.org/x/sys/windows/svc/debug"
@@ -24,8 +22,7 @@ func (m *myservice) Execute(args []string, r <-chan svc.ChangeRequest, changes c
const cmdsAccepted = svc.AcceptStop | svc.AcceptShutdown | svc.AcceptPauseAndContinue
changes <- svc.Status{State: svc.StartPending}
changes <- svc.Status{State: svc.Running, Accepts: cmdsAccepted}
- // TODO use httpBindAddr
- go runCommandServer("localhost:7171")
+ go runCommandServer(httpBindAddr)
loop:
for {
select {