Files
tailscale/wgengine
Mike O'Driscoll 87e4d40046 wgengine/magicsock: send CallMeMaybe to peers whose endpoints we don't know (#22902)
magicsock only sent a CallMeMaybe after disco-pinging at least one of
the peer's endpoints. So if neither node's netmap had the other's
endpoints, neither ever started discovery, and traffic between them
stayed on DERP for good, even though each had the other's disco key and
home DERP and could have told the other its endpoints over DERP.

Control sends Funnel targets to Tailscale's ingress nodes without their
endpoints, and sent the ingress nodes to the targets without endpoints
too, so all Funnel traffic was relayed over DERP.

When we know none of a peer's endpoints, send it a CallMeMaybe anyway,
at most once per discoPingInterval. The peer then pings our endpoints,
which tells us its endpoints, and normal discovery takes over. Only one
of the two nodes needs this change.

Add TestMemnetDirectWithoutEndpoints, which fails without this change.

Updates #22576

Change-Id: I098ca7023f38070eb6e27aff876d3030d9fdbadf

Signed-off-by: Mike O'Driscoll <[email protected]>
2026-12-04 13:43:24 -05:00
..