mirror of
https://github.com/ergochat/ergo.git
synced 2025-12-20 10:10:08 -08:00
trim . from reverse address lookup
This commit is contained in:
parent
1dfd4d518d
commit
28bd5a40ba
1 changed files with 1 additions and 1 deletions
|
|
@ -77,5 +77,5 @@ func LookupHostname(addr net.Addr) string {
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return ipaddr
|
return ipaddr
|
||||||
}
|
}
|
||||||
return names[0]
|
return names[0][0 : len(names[0])-1]
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue