mirror of
https://github.com/jeremyd/ergo.git
synced 2026-05-27 01:54:47 -07:00
trim . from reverse address lookup
This commit is contained in:
@@ -77,5 +77,5 @@ func LookupHostname(addr net.Addr) string {
|
||||
if err != nil {
|
||||
return ipaddr
|
||||
}
|
||||
return names[0]
|
||||
return names[0][0 : len(names[0])-1]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user