diff --git a/src/plugins/relay/relay-server.c b/src/plugins/relay/relay-server.c index 900ecf9c1..6c6c07cf7 100644 --- a/src/plugins/relay/relay-server.c +++ b/src/plugins/relay/relay-server.c @@ -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