Przeglądaj źródła

Make tor-resolve accept x.y.exit addresses again

svn:r3036
Nick Mathewson 21 lat temu
rodzic
commit
5ec4e75cdb
1 zmienionych plików z 4 dodań i 6 usunięć
  1. 4 6
      src/tools/tor-resolve.c

+ 4 - 6
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;
   }