X-Git-Url: http://dxcluster.net/gitweb/gitweb.cgi?a=blobdiff_plain;f=perl%2FDXCommandmode.pm;h=eae67c7237024a85fb8a3b396731b727d39a6a04;hb=022b68994a271efa987d72ef1aff6164a0d96584;hp=6eee5d457cc00aca7b0ea6143a96dca280df4d0b;hpb=79d9dda3ba0b241596b2ac1daab2c780943c3628;p=spider.git diff --git a/perl/DXCommandmode.pm b/perl/DXCommandmode.pm index 6eee5d45..eae67c72 100644 --- a/perl/DXCommandmode.pm +++ b/perl/DXCommandmode.pm @@ -87,7 +87,9 @@ sub start my $name = $user->{name}; # log it - my $host = $self->{conn}->{peerhost} || "unknown"; + my $host = $self->{conn}->{peerhost}; + $host ||= "AGW Port #$self->{conn}->{agwport}" if exists $self->{conn}->{agwport}; + $host ||= "unknown"; Log('DXCommand', "$call connected from $host"); $self->{name} = $name ? $name : $call;