X-Git-Url: http://dxcluster.net/gitweb/gitweb.cgi?a=blobdiff_plain;f=perl%2FMsg.pm;h=9ea2bc10c9aaad10a3f9e8ca0d96b6d95b522b69;hb=677f9d4ae7355cb6e5d05c3782a39e9022647f5b;hp=5e40d3c2afa5bdfb86e9a8b3aaf302a551f3ebd6;hpb=c30a89a0f34e861b9eb136c07ff4ea5ed9a460a0;p=spider.git diff --git a/perl/Msg.pm b/perl/Msg.pm index 5e40d3c2..9ea2bc10 100644 --- a/perl/Msg.pm +++ b/perl/Msg.pm @@ -482,7 +482,7 @@ sub new_client { $sock->on(read => sub {$conn->_rcv($_[1])}); $sock->timeout(0); $sock->start; - $conn->{peerhost} = $handle->peerhost; + $conn->{peerhost} = $handle->peerhost || 'unknown'; $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('conn') || isdbg('connect');