wgengine/magicsock: make debugNeverDirectUDP influence remote peer decisions
By dropping inbound disco.Ping messages received over direct UDP paths. Fixes #18560 Signed-off-by: Jordan Whited <jordan@tailscale.com>
This commit is contained in:
committed by
Jordan Whited
parent
3ce13eb2b9
commit
3b6d542923
@@ -62,7 +62,8 @@ var (
|
||||
//
|
||||
//lint:ignore U1000 used on Linux/Darwin only
|
||||
debugPMTUD = envknob.RegisterBool("TS_DEBUG_PMTUD")
|
||||
// debugNeverDirectUDP disables the use of direct UDP connections, forcing
|
||||
// debugNeverDirectUDP disables the use of direct UDP connections by
|
||||
// suppressing/dropping inbound/outbound [disco.Ping] messages, forcing
|
||||
// all peer communication over DERP or peer relay.
|
||||
debugNeverDirectUDP = envknob.RegisterBool("TS_DEBUG_NEVER_DIRECT_UDP")
|
||||
// Hey you! Adding a new debugknob? Make sure to stub it out in the
|
||||
|
||||
Reference in New Issue
Block a user