X-Git-Url: http://gb7djk.dxcluster.net/gitweb/gitweb.cgi?a=blobdiff_plain;f=perl%2FDXChannel.pm;h=84585ef1ee240f8d19ad10ba6d3468d386b26953;hb=f91073b99369ea05c42364f9462695be7a67016d;hp=29919c7ebcf4eb7df53c97dbe0ebc495d30819cb;hpb=cc49b8f8c2ec3a975c7ace3f5bd8679580288406;p=spider.git diff --git a/perl/DXChannel.pm b/perl/DXChannel.pm index 29919c7e..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; @@ -719,7 +724,7 @@ sub process_one if ($sort ne 'D') { if (isdbg('chan')) { if (($self->is_rbn && isdbg('rbnchan')) || !$self->is_rbn) { - dbg("<- $sort $call $line") if isdbg('chan'); + dbg("<- $sort $call $line") if isdbg('chan'); # you may think this is tautology, but it's needed get the correct label on the debug line } } }