3
0
mirror of https://github.com/ergochat/ergo.git synced 2024-11-25 05:19:25 +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 fb84910635
commit b14095f7ba

View File

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