X-Git-Url: http://gb7djk.dxcluster.net/gitweb/gitweb.cgi?a=blobdiff_plain;f=perl%2FDXChannel.pm;h=84585ef1ee240f8d19ad10ba6d3468d386b26953;hb=f91073b99369ea05c42364f9462695be7a67016d;hp=56b96faa126d91d1b3256d7bba8944dfc453402b;hpb=ca5baf12f22e041cb14af595254af4ae88d82ae0;p=spider.git diff --git a/perl/DXChannel.pm b/perl/DXChannel.pm index 56b96faa..84585ef1 100644 --- a/perl/DXChannel.pm +++ b/perl/DXChannel.pm @@ -185,7 +185,10 @@ sub alloc } $self->{inqueue} = []; - $self->{hostname} = $self->{conn}->peerhost if $conn; + if ($conn) { + $self->{hostname} = $self->{conn}->peerhost; + $self->{sockhost} = $self->{conn}->sockhost; + } $count++; dbg("DXChannel $self->{call} created ($count)") if isdbg('chan');