summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2004-11-30 07:06:05 +0000
committerNick Mathewson <nickm@torproject.org>2004-11-30 07:06:05 +0000
commit5ec4e75cdb8314a738b533270c96fb07360d45df (patch)
treed6a549c056fbe2ac1ff82013d0436a744871d8c1
parentbec7a1c6e82d1c69f6a25a3c7bae1158ed2eee1e (diff)
downloadtor-5ec4e75cdb8314a738b533270c96fb07360d45df.tar.gz
tor-5ec4e75cdb8314a738b533270c96fb07360d45df.zip
Make tor-resolve accept x.y.exit addresses again
svn:r3036
-rw-r--r--src/tools/tor-resolve.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/tools/tor-resolve.c b/src/tools/tor-resolve.c
index 10600fb06f..79c7a4c3fc 100644
--- a/src/tools/tor-resolve.c
+++ b/src/tools/tor-resolve.c
@@ -204,12 +204,10 @@ main(int argc, char **argv)
usage();
}
- if (!strcasecmpend(arg[0], ".onion") || !strcasecmpend(arg[0], ".exit")) {
- const char *name_type = (!strcasecmpend(arg[0], ".exit")) ?
- "an exit-local hostname" : "a hidden service";
- fprintf(stderr, "%s is %s; those don't have IP addresses.\n\n"
- "To connect to %s, you need to send the hostname to Tor;\n"
- "we suggest SOCKS 4a.\n", arg[0], name_type, name_type);
+ if (!strcasecmpend(arg[0], ".onion")) {
+ fprintf(stderr, "%s is a hidden service; those don't have IP addresses.\n\n"
+ "To connect to a hidden service, you need to send the hostname to Tor;\n"
+ "we suggest SOCKS 4a.\n", arg[0]);
return 1;
}