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
debugknobs.go
debugknobs_stubs.go
discopingpurpose_string.go
magicsock.go wgengine/magicsock: prefer private endpoints to public ones 1 year ago
magicsock_default.go
magicsock_linux.go
magicsock_test.go wgengine/magicsock: prefer private endpoints to public ones 1 year ago
magicsock_unix_test.go
pathfinder.go