mirror of
https://github.com/tailscale/tailscale.git
synced 2025-12-27 04:46:40 +00:00
wgengine/magicsock: add envknob to toggle UDP relay feature (#16396)
Updates tailscale/corp#27502 Signed-off-by: Jordan Whited <jordan@tailscale.com>
This commit is contained in:
@@ -62,6 +62,12 @@ var (
|
||||
//
|
||||
//lint:ignore U1000 used on Linux/Darwin only
|
||||
debugPMTUD = envknob.RegisterBool("TS_DEBUG_PMTUD")
|
||||
// debugAssumeUDPRelayCapable forces magicsock to assume that all peers are
|
||||
// UDP relay capable clients and servers. This will eventually be replaced
|
||||
// by a [tailcfg.CapabilityVersion] comparison. It enables early testing of
|
||||
// the UDP relay feature before we have established related
|
||||
// [tailcfg.CapabilityVersion]'s.
|
||||
debugAssumeUDPRelayCapable = envknob.RegisterBool("TS_DEBUG_ASSUME_UDP_RELAY_CAPABLE")
|
||||
// Hey you! Adding a new debugknob? Make sure to stub it out in the
|
||||
// debugknobs_stubs.go file too.
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user