Fix location estimation on Windows

Also, switch to a better Portal Test IP.
This commit is contained in:
Daniel
2020-08-10 23:13:02 +02:00
parent 633bb34288
commit b9f011fa37
7 changed files with 206 additions and 64 deletions

View File

@@ -0,0 +1,9 @@
//+build !windows
package netenv
import "net"
func newICMPListener(_ string) (net.PacketConn, error) {
return net.ListenPacket("ip4:icmp", "0.0.0.0")
}