mirror of
https://github.com/tailscale/tailscale.git
synced 2025-03-28 12:02:23 +00:00
wgengine/magicsock: enable DERP Return Path Optimization (DRPO)
Turning this on at the beginning of the 1.21.x dev cycle, for 1.22. Updates #150 Change-Id: I1de567cfe0be3df5227087de196ab88e60c9eb56 Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
This commit is contained in:
parent
c6c39930cc
commit
5a317d312d
@ -68,7 +68,7 @@ func useDerpRoute() bool {
|
|||||||
if v, ok := ob.Get(); ok {
|
if v, ok := ob.Get(); ok {
|
||||||
return v
|
return v
|
||||||
}
|
}
|
||||||
return false
|
return true // as of 1.21.x
|
||||||
}
|
}
|
||||||
|
|
||||||
// peerInfo is all the information magicsock tracks about a particular
|
// peerInfo is all the information magicsock tracks about a particular
|
||||||
@ -1584,6 +1584,8 @@ func (c *Conn) runDerpReader(ctx context.Context, derpFakeAddr netaddr.IPPort, d
|
|||||||
continue
|
continue
|
||||||
case derp.HealthMessage:
|
case derp.HealthMessage:
|
||||||
health.SetDERPRegionHealth(regionID, m.Problem)
|
health.SetDERPRegionHealth(regionID, m.Problem)
|
||||||
|
case derp.PeerGoneMessage:
|
||||||
|
c.removeDerpPeerRoute(key.NodePublic(m), regionID, dc)
|
||||||
default:
|
default:
|
||||||
// Ignore.
|
// Ignore.
|
||||||
continue
|
continue
|
||||||
|
Loading…
x
Reference in New Issue
Block a user