redo ffff remove on pc92 a
authorDirk Koopman <djk@tobit.co.uk>
Thu, 7 May 2020 15:41:57 +0000 (16:41 +0100)
committerDirk Koopman <djk@tobit.co.uk>
Thu, 7 May 2020 15:41:57 +0000 (16:41 +0100)
perl/DXProtHandle.pm

index 19d4a31c1888853bc12c7ff0d0410ec3a25c1850..3e283a18e804ce96d0ff7a978f001c28ae91d9d7 100644 (file)
@@ -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) {