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:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user