fix missing IP addresses on spots and PC92 A records
[spider.git] / perl / DXChannel.pm
index 8b1792cd148dc0caddb6f5180ef1907d149c7d05..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;