wgengine/magicsock: remove redundant derpMagicIP comparison

Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
pull/152/head
Brad Fitzpatrick 5 years ago committed by Brad Fitzpatrick
parent bd60a750e8
commit 61d83f759b

@ -1144,11 +1144,6 @@ func (a *AddrSet) UpdateDst(new *net.UDPAddr) error {
// Packet from current-priority address, no logging.
// This is a hot path for established connections.
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

Loading…
Cancel
Save