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
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
..
bench all: move network monitoring from wgengine/monitor to net/netmon 2 years ago
capture various: add golangci-lint, fix issues (#7905) 2 years ago
filter all: use tstest.Replace more 2 years ago
magicsock wgengine/magicsock: prefer private endpoints to public ones 1 year ago
netlog all: avoid repeated default interface lookups 2 years ago
netstack wgengine/netstack: use ping6 on BSD platforms 1 year ago
router all: move network monitoring from wgengine/monitor to net/netmon 2 years ago
wgcfg tailcfg: make SelfNodeV4MasqAddrForThisPeer a pointer 2 years ago
wgint all: update copyright and license headers 2 years ago
wglog all: update copyright and license headers 2 years ago
winnet all: update copyright and license headers 2 years ago
mem_ios.go all: update copyright and license headers 2 years ago
pendopen.go all: update copyright and license headers 2 years ago
userspace.go tsd: add package with System type to unify subsystem init, discovery 2 years ago
userspace_ext_test.go tsd: add package with System type to unify subsystem init, discovery 2 years ago
userspace_test.go all: update copyright and license headers 2 years ago
watchdog.go tsd: add package with System type to unify subsystem init, discovery 2 years ago
watchdog_js.go all: update copyright and license headers 2 years ago
watchdog_test.go all: update copyright and license headers 2 years ago
wgengine.go tsd: add package with System type to unify subsystem init, discovery 2 years ago