mirror of
https://github.com/ergochat/ergo.git
synced 2024-11-25 21:39:25 +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":
|
case "127.0.0.1", "::1":
|
||||||
return "localhost"
|
return "localhost"
|
||||||
}
|
}
|
||||||
names, err := net.LookupHost(ipaddr)
|
names, err := net.LookupAddr(ipaddr)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return ipaddr
|
return ipaddr
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user