From 06b8dc9c582778b62a2f7b056102fae75125587f Mon Sep 17 00:00:00 2001 From: Ettore Di Giacinto Date: Mon, 17 Oct 2022 22:27:39 +0200 Subject: [PATCH] :bug: Fixup unmarshal to anonymous struct --- cmd/discovery/main.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/discovery/main.go b/cmd/discovery/main.go index 96c2ee0..1b5372e 100644 --- a/cmd/discovery/main.go +++ b/cmd/discovery/main.go @@ -52,14 +52,14 @@ func getPass(server, label string) (string, error) { func start() error { factory := pluggable.NewPluginFactory() - connectionDetails := &struct { + connectionDetails := struct { Server string `yaml:"challenger_server"` }{} var server string d, err := machine.DotToYAML("/proc/cmdline") if err == nil { // best-effort - yaml.Unmarshal(d, connectionDetails) //nolint:errcheck + yaml.Unmarshal(d, &connectionDetails) //nolint:errcheck } server = connectionDetails.Server if os.Getenv("WSS_SERVER") != "" {