fix auth-secret command line argument

This commit is contained in:
Vladislav Yarmak
2021-06-25 23:33:20 +03:00
parent 378547283b
commit 6ebcb66a57

View File

@@ -179,6 +179,9 @@ func run() int {
mainLogger.Critical("Unable to construct WndClient: %v", err)
return 8
}
wndc.Mux.Lock()
wndc.State.Settings.ClientAuthSecret = args.clientAuthSecret
wndc.Mux.Unlock()
// Try ressurect state
state, err := loadState(args.stateFile)