ipn: don't set DebugFlags to len 1 slice of empty string [""]

Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
reviewable/pr858/r1
Brad Fitzpatrick 4 years ago committed by Brad Fitzpatrick
parent 691f1d5c1d
commit 6b1d2a5630

@ -36,9 +36,14 @@ import (
"tailscale.com/wgengine/tsdns"
)
var (
controlDebugFlags = strings.Split(os.Getenv("TS_DEBUG_CONTROL_FLAGS"), ",")
)
var controlDebugFlags = getControlDebugFlags()
func getControlDebugFlags() []string {
if e := os.Getenv("TS_DEBUG_CONTROL_FLAGS"); e != "" {
return strings.Split(e, ",")
}
return nil
}
// LocalBackend is the glue between the major pieces of the Tailscale
// network software: the cloud control plane (via controlclient), the

Loading…
Cancel
Save