diff options
author | jkito <jkito@github> | 2022-09-03 11:35:50 +0530 |
---|---|---|
committer | kali kaneko (leap communications) <kali@leap.se> | 2022-11-08 21:37:42 +0100 |
commit | 99077aadd6ba7b142d380604f2328b63378b6fc3 (patch) | |
tree | 7852ae214c2210c7024904b682dfe9258f79acc6 | |
parent | 195fb8abf9cfa5468130957c69b483cfd6e2ea62 (diff) |
[bug] use struct field names to initialize launcher struct
since the no of values are not the same as the number of fields
we need to mention the names
-rw-r--r-- | pkg/vpn/launcher_darwin.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/vpn/launcher_darwin.go b/pkg/vpn/launcher_darwin.go index 919c81b..7485ca9 100644 --- a/pkg/vpn/launcher_darwin.go +++ b/pkg/vpn/launcher_darwin.go @@ -84,7 +84,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, false}, nil + return &launcher{helperAddr: helperAddr, failed: false}, nil } func (l *launcher) close() error { |