mirror of
https://github.com/ergochat/ergo.git
synced 2024-12-22 18:52:41 +01:00
trim . from reverse address lookup
This commit is contained in:
parent
1dfd4d518d
commit
28bd5a40ba
@ -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]
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user