mirror of
https://github.com/safing/portmaster
synced 2025-09-01 18:19:12 +00:00
13 lines
293 B
Go
13 lines
293 B
Go
// +build root
|
|
|
|
package netenv
|
|
|
|
import "testing"
|
|
|
|
func TestGetApproximateInternetLocation(t *testing.T) {
|
|
ip, err := GetApproximateInternetLocation()
|
|
if err != nil {
|
|
t.Errorf("GetApproximateInternetLocation failed: %s", err)
|
|
}
|
|
t.Logf("GetApproximateInternetLocation: %s", ip.String())
|
|
}
|