3
0
mirror of https://github.com/ergochat/ergo.git synced 2024-11-15 00:19:29 +01:00
Sanitize ::1 to 0::1 in WHOX output
This commit is contained in:
Shivaram Lingamneni 2022-07-14 21:53:36 -04:00
parent 26e0dae11d
commit 1d10eb934a

View File

@ -3358,7 +3358,7 @@ func (client *Client) rplWhoReply(channel *Channel, target *Client, rb *Response
if canSeeIPs || client == target {
// you can only see a target's IP if they're you or you're an oper
ip, _ := target.getWhoisActually()
fIP = ip.String()
fIP = utils.IPStringToHostname(ip.String())
}
params = append(params, fIP)
}