mirror of
https://github.com/tailscale/tailscale.git
synced 2025-08-14 23:17:29 +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:
@@ -2592,12 +2592,12 @@ func (c *Conn) SetProbeUDPLifetime(v bool) {
|
||||
|
||||
func capVerIsRelayCapable(version tailcfg.CapabilityVersion) bool {
|
||||
// TODO(jwhited): implement once capVer is bumped
|
||||
return version == math.MinInt32
|
||||
return version == math.MinInt32 || debugAssumeUDPRelayCapable()
|
||||
}
|
||||
|
||||
func capVerIsRelayServerCapable(version tailcfg.CapabilityVersion) bool {
|
||||
// TODO(jwhited): implement once capVer is bumped
|
||||
return version == math.MinInt32
|
||||
// TODO(jwhited): implement once capVer is bumped & update Test_peerAPIIfCandidateRelayServer
|
||||
return version == math.MinInt32 || debugAssumeUDPRelayCapable()
|
||||
}
|
||||
|
||||
// onFilterUpdate is called when a [FilterUpdate] is received over the
|
||||
|
Reference in New Issue
Block a user