mirror of
https://github.com/ergochat/ergo.git
synced 2025-12-20 02:00:11 -08:00
reverse dns lookup
This commit is contained in:
parent
9b89f1a0fb
commit
959167cbe7
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue