tailscale/net/interfaces
Josh Bleecher Snyder 1ebbaaaebb net/interfaces: make syscall and netstat agree when multiple gateways are present
likelyHomeRouterIPDarwinSyscall iterates through the list of routes,
looking for a private gateway, returning the first one it finds.

likelyHomeRouterIPDarwinExec does the same thing,
except that it returns the last one it finds.

As a result, when there are multiple gateways,
TestLikelyHomeRouterIPSyscallExec fails.
(At least, I think that that is what is happening;
I am going inferring from observed behavior.)

Signed-off-by: Josh Bleecher Snyder <josh@tailscale.com>
2020-11-19 12:14:58 -08:00
..
interfaces.go ipn, wgengine, magicsock, tsdns: be quieter and less aggressive when offline 2020-10-06 15:26:53 -07:00
interfaces_darwin.go net/interfaces: make syscall and netstat agree when multiple gateways are present 2020-11-19 12:14:58 -08:00
interfaces_darwin_cgo.go
interfaces_darwin_cgo_test.go
interfaces_darwin_nocgo.go net/interfaces: use syscalls to find private gateway IP address 2020-08-04 15:45:56 -07:00
interfaces_defaultrouteif_todo.go
interfaces_linux.go
interfaces_linux_test.go
interfaces_test.go net/interfaces: add interfaces.State.String method 2020-10-02 12:15:05 -07:00
interfaces_windows.go net/interfaces: ignore bogus proxy URLs from winhttp [windows] 2020-11-10 11:30:18 -08:00
interfaces_windows_test.go
route.h