summaryrefslogtreecommitdiff
path: root/pkg/vpn/launcher.go
diff options
context:
space:
mode:
authorkali kaneko (leap communications) <kali@leap.se>2021-09-17 19:50:17 +0200
committerkali kaneko (leap communications) <kali@leap.se>2021-11-23 21:51:06 +0100
commitd6c712d1b127d018c829b0b006fd94749916fb7d (patch)
treeadadcde56e0178d83bca1a25ade24b921d670773 /pkg/vpn/launcher.go
parent9413b50cba3d8b4c9a8b6474729483b775aa5619 (diff)
[ui] track failed state
Diffstat (limited to 'pkg/vpn/launcher.go')
-rw-r--r--pkg/vpn/launcher.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/pkg/vpn/launcher.go b/pkg/vpn/launcher.go
index eb3794c..1b2d673 100644
--- a/pkg/vpn/launcher.go
+++ b/pkg/vpn/launcher.go
@@ -34,6 +34,7 @@ import (
type launcher struct {
helperAddr string
+ failed bool
}
const initialHelperPort = 7171
@@ -82,7 +83,7 @@ func smellsLikeOurHelperSpirit(port int, c *http.Client) bool {
func newLauncher() (*launcher, error) {
helperPort := probeHelperPort(initialHelperPort)
helperAddr := "http://localhost:" + strconv.Itoa(helperPort)
- return &launcher{helperAddr}, nil
+ return &launcher{helperAddr, false}, nil
}
func (l *launcher) close() error {