X-Git-Url: http://dxcluster.net/gitweb/gitweb.cgi?a=blobdiff_plain;f=cmd%2Fshow%2Fconnect.pl;h=025c20ea9a29f37c3bdf72a7d6436b059a532e65;hb=de74820014fc2c49c789ebcbe683bccf23adbfe7;hp=98211ddfd31b3dc9d6560fb8d0fa1d8119d703f1;hpb=81de65f4e1bba2d05711603cea367eef3a05e681;p=spider.git diff --git a/cmd/show/connect.pl b/cmd/show/connect.pl index 98211ddf..025c20ea 100644 --- a/cmd/show/connect.pl +++ b/cmd/show/connect.pl @@ -18,11 +18,13 @@ foreach my $call (sort keys %Msg::conns) { my $c = $call; my $addr; - if ($c =~ /^Server\s+(\S+)$/) { + if ($c =~ /^Server\s+(\S+)/) { $addr = $1; $c = "Server"; } else { - $addr = "$r->{peerhost}/$r->{peerport}"; + $addr = "AGW Port ($r->{agwport})" if exists $r->{agwport}; + $addr ||= "$r->{peerhost}/$r->{peerport}"; + $addr ||= "Unknown"; } my $csort = $r->{csort} || ''; my $sort = $r->{sort} || '';