tailscale/net/interfaces
Anton Tolchanov d499afac78 net/interfaces: improve default route detection
Instead of treating any interface with a non-ifscope route as a
potential default gateway, now verify that a given route is
actually a default route (0.0.0.0/0 or ::/0).

Fixes #5879

Signed-off-by: Anton Tolchanov <anton@tailscale.com>
2022-10-19 11:10:19 +01:00
..
interfaces_bsd.go net/interfaces: improve default route detection 2022-10-19 11:10:19 +01:00
interfaces_darwin_test.go net/interfaces: improve default route detection 2022-10-19 11:10:19 +01:00
interfaces_darwin.go net/interfaces: deduplicate route table parsing on Darwin and FreeBSD 2022-10-19 11:10:19 +01:00
interfaces_default_route_test.go all: gofmt with Go 1.17 2021-08-05 15:54:00 -07:00
interfaces_defaultrouteif_todo.go net/interfaces: add FreeBSD default route lookup (portmapping, etc) 2022-03-08 13:02:02 -08:00
interfaces_freebsd.go net/interfaces: deduplicate route table parsing on Darwin and FreeBSD 2022-10-19 11:10:19 +01:00
interfaces_linux_test.go refactor: move from io/ioutil to io and os packages 2022-09-15 21:45:53 -07:00
interfaces_linux.go syncs, all: move to using Go's new atomic types instead of ours 2022-08-04 07:47:59 -07:00
interfaces_test.go all: convert more code to use net/netip directly 2022-07-25 21:53:49 -07:00
interfaces_windows_test.go net/interfaces: quiet PAC detection logging in no-PAC case, add benchmark 2020-10-01 22:02:39 -07:00
interfaces_windows.go go.mod: bump wireguard/windows, which moves to using net/netip 2022-08-31 08:36:56 -07:00
interfaces.go all: fix spelling mistakes 2022-09-29 13:36:13 -07:00