3
0
mirror of https://github.com/ergochat/ergo.git synced 2024-11-22 03:49:27 +01:00

reverse dns lookup

This commit is contained in:
Jeremy Latt 2014-02-09 21:04:37 -08:00
parent 9b89f1a0fb
commit 959167cbe7

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
}