X-Git-Url: http://dxcluster.net/gitweb/gitweb.cgi?a=blobdiff_plain;f=perl%2FDXChannel.pm;h=dcd7b909bf25af8983044ace748da460efb896eb;hb=a3070f2678d8be7d44dbf2148cee77cd6a212243;hp=56b96faa126d91d1b3256d7bba8944dfc453402b;hpb=ca5baf12f22e041cb14af595254af4ae88d82ae0;p=spider.git diff --git a/perl/DXChannel.pm b/perl/DXChannel.pm index 56b96faa..dcd7b909 100644 --- a/perl/DXChannel.pm +++ b/perl/DXChannel.pm @@ -175,6 +175,7 @@ sub alloc $self->{lang} = $main::lang if !$self->{lang}; $self->{func} = ""; $self->{width} ||= 80; + $self->{_nospawn} = 0; # add in all the dxcc, itu, zone info my @dxcc = Prefix::extract($call); @@ -185,7 +186,10 @@ sub alloc } $self->{inqueue} = []; - $self->{hostname} = $self->{conn}->peerhost if $conn; + if ($conn) { + $self->{hostname} = $self->{conn}->peerhost; + $self->{sockhost} = $self->{conn}->sockhost; + } $count++; dbg("DXChannel $self->{call} created ($count)") if isdbg('chan');