1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-13 06:34:47 +02:00

relay: don't print ::ffff: in v4-mapped addresses.

This commit is contained in:
Anders Bergh
2014-06-18 14:07:46 +02:00
committed by Sébastien Helleu
parent 9aee60bd89
commit 85339f6083
+6
View File
@@ -269,6 +269,12 @@ relay_server_sock_cb (void *data, int fd)
INET6_ADDRSTRLEN))
{
ptr_ip_address = ipv6_address;
if (strncmp (ptr_ip_address, "::ffff:", 7) == 0)
{
/* actually an IPv4-mapped IPv6 address, so skip ::ffff: */
ptr_ip_address += 7;
}
}
}
else