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>
pull/3814/head
David Anderson 3 years ago committed by Brad Fitzpatrick
parent c2059d5b8a
commit 7a18fe3dca

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

Loading…
Cancel
Save