You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
tailscale/control/controlclient
Brad Fitzpatrick 34d2f5a3d9 tailcfg: add Endpoint, EndpointType, MapRequest.EndpointType
Track endpoints internally with a new tailcfg.Endpoint type that
includes a typed netaddr.IPPort (instead of just a string) and
includes a type for how that endpoint was discovered (STUN, local,
etc).

Use []tailcfg.Endpoint instead of []string internally.

At the last second, send it to the control server as the existing
[]string for endpoints, but also include a new parallel
MapRequest.EndpointType []tailcfg.EndpointType, so the control server
can start filtering out less-important endpoint changes from
new-enough clients. Notably, STUN-discovered endpoints can be filtered
out from 1.6+ clients, as they can discover them amongst each other
via CallMeMaybe disco exchanges started over DERP. And STUN endpoints
change a lot, causing a lot of MapResposne updates. But portmapped
endpoints are worth keeping for now, as they they work right away
without requiring the firewall traversal extra RTT dance.

End result will be less control->client bandwidth. (despite negligible
increase in client->control bandwidth)

Updates tailscale/corp#1543

Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
4 years ago
..
auto.go tailcfg: add Endpoint, EndpointType, MapRequest.EndpointType 4 years ago
controlclient_test.go cover one more case in TestStatusEqual. 4 years ago
debug.go tailcfg, control/controlclient: add goroutine dump debug feature 4 years ago
debug_test.go tailcfg, control/controlclient: add goroutine dump debug feature 4 years ago
direct.go tailcfg: add Endpoint, EndpointType, MapRequest.EndpointType 4 years ago
direct_test.go tailcfg: add Endpoint, EndpointType, MapRequest.EndpointType 4 years ago
filter.go wgengine/filter: remove the Matches type. 4 years ago
hostinfo_linux.go hostifo: update LXC, add Cloud Run. 4 years ago
hostinfo_windows.go control/controlclient: cache Windows version 4 years ago
sign.go control/controlclient: sign RegisterRequest (#1549) 4 years ago
sign_supported.go control/controlclient: return correct certificate 4 years ago
sign_unsupported.go control/controlclient: sign RegisterRequest (#1549) 4 years ago