added Windows only BPQ interface from John G8BPQ
[spider.git] / cmd / show / connect.pl
index 98211ddfd31b3dc9d6560fb8d0fa1d8119d703f1..4644d5c9d6bd497dbe79524e410cf7bdeb065126 100644 (file)
@@ -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} || '';