Skip to content

Commit

Permalink
relay: don't print ::ffff: in v4-mapped addresses.
Browse files Browse the repository at this point in the history
  • Loading branch information
anders authored and flashcode committed Sep 28, 2014
1 parent 9aee60b commit 85339f6
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/plugins/relay/relay-server.c
Expand Up @@ -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
Expand Down

0 comments on commit 85339f6

Please sign in to comment.