mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-11 05:33:47 +01:00
Make tor-resolve accept x.y.exit addresses again
svn:r3036
This commit is contained in:
parent
bec7a1c6e8
commit
5ec4e75cdb
@ -204,12 +204,10 @@ main(int argc, char **argv)
|
|||||||
usage();
|
usage();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!strcasecmpend(arg[0], ".onion") || !strcasecmpend(arg[0], ".exit")) {
|
if (!strcasecmpend(arg[0], ".onion")) {
|
||||||
const char *name_type = (!strcasecmpend(arg[0], ".exit")) ?
|
fprintf(stderr, "%s is a hidden service; those don't have IP addresses.\n\n"
|
||||||
"an exit-local hostname" : "a hidden service";
|
"To connect to a hidden service, you need to send the hostname to Tor;\n"
|
||||||
fprintf(stderr, "%s is %s; those don't have IP addresses.\n\n"
|
"we suggest SOCKS 4a.\n", arg[0]);
|
||||||
"To connect to %s, you need to send the hostname to Tor;\n"
|
|
||||||
"we suggest SOCKS 4a.\n", arg[0], name_type, name_type);
|
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user