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/net/interfaces
Brad Fitzpatrick 3606e68721 net/interfaces: fix default route lookup on Windows
It wasn't using the right metric. Apparently you're supposed to sum the route
metric and interface metric. Whoops.

While here, optimize a few little things too, not that this code
should be too hot.

Fixes #2707 (at least; probably dups but I'm failing to find)

Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
3 years ago
..
interfaces.go net/interfaces: explicitly check netaddr.IP.Is6 in isUsableV6 3 years ago
interfaces_darwin.go net/interface: remove darwin fetchRoutingTable workaround 4 years ago
interfaces_darwin_test.go net/{dnscache,interfaces}: use netaddr.IP.IsPrivate, delete copied code 3 years ago
interfaces_default_route_test.go all: gofmt with Go 1.17 3 years ago
interfaces_defaultrouteif_todo.go all: gofmt with Go 1.17 3 years ago
interfaces_linux.go net/{dnscache,interfaces}: use netaddr.IP.IsPrivate, delete copied code 3 years ago
interfaces_linux_test.go net/interface: add AWS App Runner /proc/net/route test 3 years ago
interfaces_test.go net/interfaces: explicitly check netaddr.IP.Is6 in isUsableV6 3 years ago
interfaces_windows.go net/interfaces: fix default route lookup on Windows 3 years ago
interfaces_windows_test.go net/interfaces: quiet PAC detection logging in no-PAC case, add benchmark 4 years ago
route.h net/interfaces: use syscalls to find private gateway IP address 4 years ago