projects
/
spider.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Allow synonyms for localhost
[spider.git]
/
cmd
/
dx.pl
diff --git
a/cmd/dx.pl
b/cmd/dx.pl
index 956dc4c17b6a2e2233bb63b09862871fb3b2421f..d1e278837d49fe018083121bf7cf44b77050424b 100644
(file)
--- 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;
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");
Log('cmd', "$self->{call}|$addr|dx|$line");