From 9bd1b50613d46b88fb7a5fb4a7e4f9882b935387 Mon Sep 17 00:00:00 2001 From: Dirk Koopman Date: Thu, 7 May 2020 16:41:57 +0100 Subject: [PATCH] redo ffff remove on pc92 a --- perl/DXProtHandle.pm | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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) { -- 2.43.0