net/interfaces: add func LikelyHomeRouterIP

For discovering where we might direct NAT-PMP/PCP/UPnP queries at in
the future.
This commit is contained in:
Brad Fitzpatrick
2020-07-06 10:34:52 -07:00
parent c3c607e78a
commit 32156330a8
8 changed files with 222 additions and 1 deletions

View File

@@ -47,3 +47,8 @@ func TestGetState(t *testing.T) {
t.Fatal("two States back-to-back were not equal")
}
}
func TestLikelyHomeRouterIP(t *testing.T) {
ip, ok := LikelyHomeRouterIP()
t.Logf("got %v, %v", ip, ok)
}