X-Git-Url: http://dxcluster.net/gitweb/gitweb.cgi?a=blobdiff_plain;f=perl%2FMsg.pm;h=9a6f8d1f06894cd25d749afc9d2bac8019fd132d;hb=3b87cb901b1aa6604814d3f585561a404603f43f;hp=8992d3c108b85d94886bd3b2d0bf213740eeec94;hpb=ef77e5488c4cc47afe272f6220cc3fa0cddc5829;p=spider.git diff --git a/perl/Msg.pm b/perl/Msg.pm index 8992d3c1..9a6f8d1f 100644 --- a/perl/Msg.pm +++ b/perl/Msg.pm @@ -133,6 +133,7 @@ sub peerhost $conn->{peerhost} ||= $conn->{sock}->handle->peerhost if $conn->{sock}; $conn->{peerhost} ||= 'UNKNOWN'; } + $conn->{peerhost} =~ s/^::ffff://; return $conn->{peerhost}; }