mirror of
https://github.com/weechat/weechat.git
synced 2026-06-29 06:16:40 +02:00
relay: don't print ::ffff: in v4-mapped addresses.
This commit is contained in:
committed by
Sébastien Helleu
parent
9aee60bd89
commit
85339f6083
@@ -269,6 +269,12 @@ relay_server_sock_cb (void *data, int fd)
|
|||||||
INET6_ADDRSTRLEN))
|
INET6_ADDRSTRLEN))
|
||||||
{
|
{
|
||||||
ptr_ip_address = ipv6_address;
|
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
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user