From: Dirk Koopman Date: Fri, 21 Jan 2022 18:12:31 +0000 (+0000) Subject: fix ip address detection in PC92 X-Git-Url: http://dxcluster.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=727a4af5991d69cca9f80fdab123ead06c3d6492;p=spider.git fix ip address detection in PC92 --- diff --git a/perl/DXProtHandle.pm b/perl/DXProtHandle.pm index 6f4fbd08..2b0a491b 100644 --- a/perl/DXProtHandle.pm +++ b/perl/DXProtHandle.pm @@ -1571,8 +1571,9 @@ sub _decode_pc92_call my $version = $part[1] || 0; my $build = $part[2] || 0; my $ip = $part[3] || ''; - - if (is_ipaddr($version)) { + + # remember that, at this stage, IPV6 addresses have : replaced by , + if (length $version > 4 && $version =~ /[,\.][\da-f]{1,4}/i) { $ip = $version; $version = 0; }