3
0
mirror of https://github.com/ergochat/ergo.git synced 2024-11-13 07:29:30 +01:00

trim . from reverse address lookup

This commit is contained in:
Jeremy Latt 2014-02-09 21:10:36 -08:00
parent 1dfd4d518d
commit 28bd5a40ba

View File

@ -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]
}