X-Git-Url: http://gb7djk.dxcluster.net/gitweb/gitweb.cgi?a=blobdiff_plain;f=cmd%2Fdx.pl;fp=cmd%2Fdx.pl;h=d1e278837d49fe018083121bf7cf44b77050424b;hb=44fbbf60906264270ce1621ab15569162934a020;hp=956dc4c17b6a2e2233bb63b09862871fb3b2421f;hpb=f91073b99369ea05c42364f9462695be7a67016d;p=spider.git diff --git a/cmd/dx.pl b/cmd/dx.pl index 956dc4c1..d1e27883 100644 --- a/cmd/dx.pl +++ b/cmd/dx.pl @@ -24,9 +24,7 @@ return (1, $self->msg('e5')) if $self->remotecmd || $self->inscript; return (1, $self->msg('e28')) unless $self->isregistered; -my $addr = $self->hostname || '127.0.0.1'; -$addr = $main::localhost_alias_ipv6 if $addr eq '::1' && $main::localhost_alias_ipv6; -$addr = $main::localhost_alias_ipv4 if $addr =~ /^127\./ && $main::localhost_alias_ipv4; +my $addr = DXCommandmode::alias_localhost($self->hostname || '127.0.0.1'); Log('cmd', "$self->{call}|$addr|dx|$line");