From: Dirk Koopman Date: Sun, 19 Apr 2020 22:44:00 +0000 (+0100) Subject: remove any leading ::ffff: on ipv4 addresses X-Git-Url: http://dxcluster.net/gitweb/gitweb.cgi?a=commitdiff_plain;h=251884b14d385d0e00122a238efc3ba992e9f39a;p=spider.git remove any leading ::ffff: on ipv4 addresses --- diff --git a/perl/Msg.pm b/perl/Msg.pm index b355845d..f3642d59 100644 --- a/perl/Msg.pm +++ b/perl/Msg.pm @@ -498,6 +498,7 @@ sub new_client { $sock->timeout(0); $sock->start; $conn->{peerhost} = $handle->peerhost; + $conn->{peerhost} =~ s|^::ffff:||; # chop off leading pseudo IPV6 stuff on dual stack listeners $conn->{peerport} = $handle->peerport; dbg((ref $conn) . " accept $conn->{cnum} from $conn->{peerhost}:$conn->{peerport}") if isdbg('connll'); my ($rproc, $eproc) = &{$server_conn->{rproc}} ($conn, $conn->{peerhost}, $conn->{peerport});