[or-cvs] Make tor-resolve accept x.y.exit addresses again

Nick Mathewson nickm at seul.org
Tue Nov 30 07:06:08 UTC 2004


Update of /home/or/cvsroot/tor/src/tools
In directory moria.mit.edu:/tmp/cvs-serv5822/src/tools

Modified Files:
	tor-resolve.c 
Log Message:
Make tor-resolve accept x.y.exit addresses again

Index: tor-resolve.c
===================================================================
RCS file: /home/or/cvsroot/tor/src/tools/tor-resolve.c,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -d -r1.10 -r1.11
--- tor-resolve.c	30 Nov 2004 03:12:37 -0000	1.10
+++ tor-resolve.c	30 Nov 2004 07:06:05 -0000	1.11
@@ -204,12 +204,10 @@
     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;
   }
 



More information about the tor-commits mailing list