X-Git-Url: http://dxcluster.org/gitweb/gitweb.cgi?a=blobdiff_plain;f=cmd%2Fshow%2Fconnect.pl;h=89aef0c94d272f6529bd7cbba2dc69f8a874df2f;hb=22709bc68bb04f5ee548053956c88eeca42ad3b4;hp=98211ddfd31b3dc9d6560fb8d0fa1d8119d703f1;hpb=6374fb31da62987e676244c38eb6cf73c81bf891;p=spider.git diff --git a/cmd/show/connect.pl b/cmd/show/connect.pl index 98211ddf..89aef0c9 100644 --- a/cmd/show/connect.pl +++ b/cmd/show/connect.pl @@ -3,7 +3,7 @@ # # Copyright (c) 2001 Dirk Koopman G1TLH # -# $Id$ +# # my $self = shift; @@ -18,11 +18,15 @@ 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 = "BPQ Stream ($r->{bpqstream})" if exists $r->{bpqstream}; + + $addr ||= "$r->{peerhost}/$r->{peerport}"; + $addr ||= "Unknown"; } my $csort = $r->{csort} || ''; my $sort = $r->{sort} || '';