mirror of
https://github.com/tailscale/tailscale.git
synced 2025-04-18 12:32:13 +00:00
wgengine/magicsock: remove redundant derpMagicIP comparison
Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
This commit is contained in:
parent
bd60a750e8
commit
61d83f759b
@ -1144,11 +1144,6 @@ func (a *AddrSet) UpdateDst(new *net.UDPAddr) error {
|
|||||||
// Packet from current-priority address, no logging.
|
// Packet from current-priority address, no logging.
|
||||||
// This is a hot path for established connections.
|
// This is a hot path for established connections.
|
||||||
return nil
|
return nil
|
||||||
} else if new.IP.Equal(derpMagicIP) {
|
|
||||||
// Never pick DERP addresses as a roaming addr. DERP obeys its
|
|
||||||
// own endpoint selection logic.
|
|
||||||
// This is a hot path for established connections.
|
|
||||||
return nil
|
|
||||||
}
|
}
|
||||||
|
|
||||||
index := -1
|
index := -1
|
||||||
|
Loading…
x
Reference in New Issue
Block a user