mirror of
https://github.com/jeremyd/ergo.git
synced 2026-06-11 23:33:31 -07:00
reverse dns lookup
This commit is contained in:
+1
-1
@@ -73,7 +73,7 @@ func LookupHostname(addr net.Addr) string {
|
||||
case "127.0.0.1", "::1":
|
||||
return "localhost"
|
||||
}
|
||||
names, err := net.LookupHost(ipaddr)
|
||||
names, err := net.LookupAddr(ipaddr)
|
||||
if err != nil {
|
||||
return ipaddr
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user