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/wgengine/magicsock
Andrew Dunham 2a9d46c38f wgengine/magicsock: prefer private endpoints to public ones
Switch our best address selection to use a scoring-based approach, where
we boost each address based on whether it's a private IP or IPv6.

For users in cloud environments, this biases endpoint selection towards
using an endpoint that is less likely to cost the user money, and should
be less surprising to users.

This also involves updating the tests to not use private IPv4 addresses;
other than that change, the behaviour should be identical for existing
endpoints.

Updates #8097

Signed-off-by: Andrew Dunham <andrew@du.nham.ca>
Change-Id: I069e3b399daea28be66b81f7e44fc27b2943d8af
1 year ago
..
debughttp.go all: update copyright and license headers 2 years ago
debugknobs.go derp,magicsock: add debug envknobs for HTTP and derp server name (#7744) 2 years ago
debugknobs_stubs.go derp,magicsock: add debug envknobs for HTTP and derp server name (#7744) 2 years ago
discopingpurpose_string.go all: update copyright and license headers 2 years ago
magicsock.go wgengine/magicsock: prefer private endpoints to public ones 1 year ago
magicsock_default.go net/neterror, wgengine/magicsock: use UDP GSO and GRO on Linux (#7791) 2 years ago
magicsock_linux.go net/neterror, wgengine/magicsock: use UDP GSO and GRO on Linux (#7791) 2 years ago
magicsock_test.go wgengine/magicsock: prefer private endpoints to public ones 1 year ago
magicsock_unix_test.go all: update copyright and license headers 2 years ago
pathfinder.go all: update copyright and license headers 2 years ago