reverse dns lookup

This commit is contained in:
Jeremy Latt 2014-02-09 21:04:37 -08:00
parent 9b89f1a0fb
commit 959167cbe7
1 changed files with 1 additions and 1 deletions

View File

@ -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
}