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
Andrew Dunham 2d3ae485e3 net/interfaces: add better test for LikelyHomeRouterIP
Return a mock set of interfaces and a mock gateway during this test and
verify that LikelyHomeRouterIP returns the outcome we expect. Also
verify that we return an error if there are no IPv4 addresses available.

Follow-up to #7447

Signed-off-by: Andrew Dunham <andrew@du.nham.ca>
Change-Id: I8f06989e7f1f0bebd108861cbff17b820ed2e6e4
1 year ago
..
interfaces.go net/interfaces: always return an IPv4 LikelyHomeRouterIP 1 year ago
interfaces_bsd.go net/interfaces: redo how we get the default interface on macOS and iOS 1 year ago
interfaces_darwin.go ipn/ipnlocal: add delegated interface information to /interfaces PeerAPI handler 1 year ago
interfaces_darwin_test.go all: update copyright and license headers 1 year ago
interfaces_default_route_test.go all: update copyright and license headers 1 year ago
interfaces_defaultrouteif_todo.go all: update copyright and license headers 1 year ago
interfaces_freebsd.go net/interfaces: redo how we get the default interface on macOS and iOS 1 year ago
interfaces_linux.go all: update copyright and license headers 1 year ago
interfaces_linux_test.go all: update copyright and license headers 1 year ago
interfaces_test.go net/interfaces: add better test for LikelyHomeRouterIP 1 year ago
interfaces_windows.go all: update copyright and license headers 1 year ago
interfaces_windows_test.go all: update copyright and license headers 1 year ago