X-Git-Url: http://dxcluster.net/gitweb/gitweb.cgi?a=blobdiff_plain;f=perl%2FAGWMsg.pm;h=76b80fde344ef5601c97df9df3f5837e1d744575;hb=7c7080ad7019d6e23a8ad401256122e81fa03a5a;hp=fdd4bc18314fa3cd5caab58afc0674abec2043a6;hpb=a0da21e1af6a9e4c7e582ed6fc3f5c93fea5b0c3;p=spider.git diff --git a/perl/AGWMsg.pm b/perl/AGWMsg.pm index fdd4bc18..76b80fde 100644 --- a/perl/AGWMsg.pm +++ b/perl/AGWMsg.pm @@ -409,6 +409,13 @@ sub _find return $circuit{$call}; } +sub peerhost +{ + my $conn = shift; + $conn->{peerhost} ||= $conn->{agwcall} || "UNKNOWN"; + return $conn->{peerhost}; +} + sub connect { my ($conn, $line) = @_;