X-Git-Url: http://www.dxcluster.org/gitweb/gitweb.cgi?a=blobdiff_plain;f=perl%2FDXProtHandle.pm;h=3e283a18e804ce96d0ff7a978f001c28ae91d9d7;hb=9bd1b50613d46b88fb7a5fb4a7e4f9882b935387;hp=19d4a31c1888853bc12c7ff0d0410ec3a25c1850;hpb=dc76846865745b0a4a6ae468026f8196072e2f25;p=spider.git diff --git a/perl/DXProtHandle.pm b/perl/DXProtHandle.pm index 19d4a31c..3e283a18 100644 --- a/perl/DXProtHandle.pm +++ b/perl/DXProtHandle.pm @@ -228,7 +228,7 @@ sub handle_11 if (isdbg('progress')) { my $sip = $ip ? sprintf "($ip)" : '' unless $ip =~ m|[\(\)\*]|; my $d = cldatetime($spot[2]); - $d =~ /^s+//; + $d =~ s/^s+//; my $s = "SPOT: $spot[1] on $spot[0] \@ $d by $spot[4]$sip\@$spot[7]"; $s .= " '$spot[3]'" if $spot[3]; dbg($s); @@ -1480,6 +1480,9 @@ sub _add_thingy my ($call, $is_node, $is_extnode, $here, $version, $build, $ip) = @$s; my @rout; + # remove spurious IPV6 prefix on IPV4 addresses + $ip =~ s/^::ffff://; + if ($call) { my $ncall = $parent->call; if ($is_node) {