Switch to firewall based ICMP listener and improve location mgmt

This commit is contained in:
Daniel
2021-03-29 13:47:43 +02:00
parent 99c8c801eb
commit 5731be026d
2 changed files with 289 additions and 76 deletions

View File

@@ -21,9 +21,9 @@ func TestGetApproximateInternetLocation(t *testing.T) {
t.Skip("skipping privileged test, active with -privileged argument")
}
ip, err := GetApproximateInternetLocation()
loc, err := GetInternetLocation()
if err != nil {
t.Fatalf("GetApproximateInternetLocation failed: %s", err)
}
t.Logf("GetApproximateInternetLocation: %s", ip.String())
t.Logf("GetApproximateInternetLocation: %+v", loc)
}