# add it
Spot::add(@spot);
+ my $ip = $spot[14] if exists $spot[14];
if (isdbg('progress')) {
- my $ip = '';
- $ip = sprintf "($spot[14])" if $spot[14];
- my $s = sprintf "SPOT: $spot[1] on $spot[0] \@ %s by $spot[4]$ip\@$spot[7]", cldatetime($spot[2]);
+ my $sip = $ip ? sprintf "($ip)" : '' unless $ip =~ m|[\(\)\*]|;
+ my $d = cldatetime($spot[2]);
+ $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);
}
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) {