add localhost client aliasing on spots and PC92A
[spider.git] / perl / DXChannel.pm
index 8b1792cd148dc0caddb6f5180ef1907d149c7d05..84585ef1ee240f8d19ad10ba6d3468d386b26953 100644 (file)
@@ -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;