X-Git-Url: http://gb7djk.dxcluster.net/gitweb/gitweb.cgi?a=blobdiff_plain;f=perl%2FExtMsg.pm;h=ae50f036568c57a02596f1d70b40c38260289876;hb=cf757a24d80e093d2da598c76bbe3f59fde26902;hp=dd97475aaa6a336be70186f2155e629f708d2f30;hpb=db1ab4fb2566360a224aa47e8b487150823c10a0;p=spider.git diff --git a/perl/ExtMsg.pm b/perl/ExtMsg.pm index dd97475a..ae50f036 100644 --- a/perl/ExtMsg.pm +++ b/perl/ExtMsg.pm @@ -104,7 +104,7 @@ sub dequeue $msg = uc $msg; if (is_callsign($msg) && $msg !~ m|/| ) { my $sort = $conn->{csort}; - $sort = 'local' if $conn->{peerhost} eq "127.0.0.1"; + $sort = 'local' if $conn->{peerhost} =~ /127\.\d+\.\d+\.\d+$/ || $conn->{peerhost} eq '::1'; my $uref; if ($main::passwdreq || ($uref = DXUser->get_current($msg)) && $uref->passwd ) { $conn->conns($msg); @@ -126,7 +126,7 @@ sub dequeue my $sort = $conn->{csort}; $conn->{echo} = $conn->{decho}; delete $conn->{decho}; - $sort = 'local' if $conn->{peerhost} eq "127.0.0.1"; + $sort = 'local' if $conn->{peerhost} =~ /127\.\d+\.\d+\.\d+$/ || $conn->{peerhost} eq '::1'; $conn->{usedpasswd} = 1; $conn->to_connected($conn->{call}, 'A', $sort); } else {