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:
parent
9b89f1a0fb
commit
959167cbe7
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user