X-Git-Url: http://dxcluster.net/gitweb/gitweb.cgi?a=blobdiff_plain;f=cmd%2Fdx.pl;h=3fd00e6bb1bce1a4e56169f231d3a378095f2331;hb=refs%2Fheads%2Fnewusers;hp=18687a6843b5780758010684d68d8c9d3e8efaad;hpb=b0d9bed295647635da9cd1ceeb5e4592bd87094b;p=spider.git diff --git a/cmd/dx.pl b/cmd/dx.pl index 18687a68..3fd00e6b 100644 --- a/cmd/dx.pl +++ b/cmd/dx.pl @@ -123,7 +123,7 @@ return (1, @out) unless $valid; my $ipaddr; if ($self->conn && $self->conn->peerhost) { - my $addr = $self->conn->peerhost; + my $addr = $self->hostname; $ipaddr = $addr unless !is_ipaddr($addr) || $addr =~ /^127\./ || $addr =~ /^::[0-9a-f]+$/; } elsif ($self->inscript) { $ipaddr = "script";