squash some warnings
[spider.git] / perl / DXProtHandle.pm
index 19d4a31c1888853bc12c7ff0d0410ec3a25c1850..cd6a7518348d007968a25cea940334d27db2dfee 100644 (file)
@@ -224,11 +224,12 @@ sub handle_11
        # add it
        Spot::add(@spot);
 
-       my $ip = $spot[14] if exists $spot[14];
+       my $ip = '';
+       $ip ||= $spot[14] if exists $spot[14];
        if (isdbg('progress')) {
                my $sip = $ip ? sprintf "($ip)" : '' unless $ip =~ m|[\(\)\*]|;
-               my $d = cldatetime($spot[2]);
-               $d =~ /^s+//;
+               $sip ||= '';
+               my $d = ztime($spot[2]);
                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 +1481,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 $ip;
+       
        if ($call) {
                my $ncall = $parent->call;
                if ($is_node) {