wgengine/magicsock: remove redundant derpMagicIP comparison

Signed-off-by: Brad Fitzpatrick <[email protected]>
This commit is contained in:
Brad Fitzpatrick authored and Brad Fitzpatrick committed 2020-03-06 11:31:39 -08:00
1 parent bd60a750e8
commit 61d83f759b
1 file changed
-5
-5
View File
@@ -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