mirror of
https://github.com/tailscale/tailscale.git
synced 2025-04-22 08:51:41 +00:00
ipn: don't set DebugFlags to len 1 slice of empty string [""]
Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
This commit is contained in:
parent
691f1d5c1d
commit
6b1d2a5630
11
ipn/local.go
11
ipn/local.go
@ -36,9 +36,14 @@ import (
|
|||||||
"tailscale.com/wgengine/tsdns"
|
"tailscale.com/wgengine/tsdns"
|
||||||
)
|
)
|
||||||
|
|
||||||
var (
|
var controlDebugFlags = getControlDebugFlags()
|
||||||
controlDebugFlags = strings.Split(os.Getenv("TS_DEBUG_CONTROL_FLAGS"), ",")
|
|
||||||
)
|
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
|
// LocalBackend is the glue between the major pieces of the Tailscale
|
||||||
// network software: the cloud control plane (via controlclient), the
|
// network software: the cloud control plane (via controlclient), the
|
||||||
|
Loading…
x
Reference in New Issue
Block a user