wgengine/magicsock: make debugUseDerpRoute an opt.Bool.

Can still be constant, just needs the extra methods.

Fixes #3812

Signed-off-by: David Anderson <danderson@tailscale.com>
This commit is contained in:
David Anderson 2022-01-25 17:11:43 -08:00 committed by Brad Fitzpatrick
parent c2059d5b8a
commit 7a18fe3dca

View File

@ -4,16 +4,18 @@
package magicsock
import "tailscale.com/types/opt"
// All knobs are disabled on iOS.
// Further, they're const, so the toolchain can produce smaller binaries.
const (
debugDisco = false
debugOmitLocalAddresses = false
debugUseDerpRouteEnv = ""
debugUseDerpRoute = false
logDerpVerbose = false
debugReSTUNStopOnIdle = false
debugAlwaysDERP = false
debugDisco = false
debugOmitLocalAddresses = false
debugUseDerpRouteEnv = ""
debugUseDerpRoute opt.Bool = ""
logDerpVerbose = false
debugReSTUNStopOnIdle = false
debugAlwaysDERP = false
)
func inTest() bool { return false }