mirror of
https://github.com/tailscale/tailscale.git
synced 2025-08-11 13:18:53 +00:00
winutil: refactor methods to get values from registry to also return (#9536)
errors Updates tailscale/corp#14879 Signed-off-by: Claire Wang <claire@tailscale.com>
This commit is contained in:
@@ -65,7 +65,8 @@ func getLogTarget() string {
|
||||
getLogTargetOnce.v = val
|
||||
} else {
|
||||
if runtime.GOOS == "windows" {
|
||||
getLogTargetOnce.v = winutil.GetRegString("LogTarget", "")
|
||||
logTarget, _ := winutil.GetRegString("LogTarget")
|
||||
getLogTargetOnce.v = logTarget
|
||||
}
|
||||
}
|
||||
})
|
||||
|
Reference in New Issue
Block a user