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