fix missing IP addresses on spots and PC92 A records
[spider.git] / perl / DXChannel.pm
index 29919c7ebcf4eb7df53c97dbe0ebc495d30819cb..56b96faa126d91d1b3256d7bba8944dfc453402b 100644 (file)
@@ -185,6 +185,8 @@ sub alloc
        }
        $self->{inqueue} = [];
 
+       $self->{hostname} = $self->{conn}->peerhost if $conn;
+
        $count++;
        dbg("DXChannel $self->{call} created ($count)") if isdbg('chan');
        bless $self, $pkg; 
@@ -719,7 +721,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
                                }
                        }
                }