From 99077aadd6ba7b142d380604f2328b63378b6fc3 Mon Sep 17 00:00:00 2001 From: jkito Date: Sat, 3 Sep 2022 11:35:50 +0530 Subject: [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 --- pkg/vpn/launcher_darwin.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 { -- cgit v1.2.3