diff options
author | kali <kali@win> | 2020-10-15 22:03:54 +0200 |
---|---|---|
committer | kali kaneko (leap communications) <kali@leap.se> | 2020-10-23 23:22:57 +0200 |
commit | 015faa8fe70912da4faa1528c88c3ef6b9fcaabd (patch) | |
tree | 4f0086db3d4ab2242e171a08248529276a0e0422 /pkg/vpn/launcher.go | |
parent | 46f84b7490e0427fc2ddd20238797d1d7523e278 (diff) |
[pkg] windows vendoring fixes
Diffstat (limited to 'pkg/vpn/launcher.go')
-rw-r--r-- | pkg/vpn/launcher.go | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/pkg/vpn/launcher.go b/pkg/vpn/launcher.go index 234a89c..eb3794c 100644 --- a/pkg/vpn/launcher.go +++ b/pkg/vpn/launcher.go @@ -47,11 +47,12 @@ func probeHelperPort(port int) int { return port } port++ - if port > 65535 { + /* we could go until 65k, but there's really no need */ + if port > 10000 { break } } - log.Println("WARN: Cannot find working helper") + log.Println("WARN: Cannot find any working helper") return 0 } @@ -72,6 +73,7 @@ func smellsLikeOurHelperSpirit(port int, c *http.Client) bool { return true } else { log.Println("DEBUG: Another helper seems to be running:", string(ver)) + log.Println("DEBUG: But we were hoping to find:", config.ApplicationName) } } return false |