Bläddra i källkod

reinstate a notice for the non-loopback socksport case

Thanks to prop171, it's no longer a crazy thing to do, but you should
make sure that you really meant it!
Nick Mathewson 12 år sedan
förälder
incheckning
8b0ee60fe7
1 ändrade filer med 5 tillägg och 0 borttagningar
  1. 5 0
      src/or/config.c

+ 5 - 0
src/or/config.c

@@ -5130,6 +5130,11 @@ warn_nonlocal_client_ports(const smartlist_t *ports, const char *portname)
                "Other people on the Internet might find your computer and "
                "use it as an open proxy. Please don't allow this unless you "
                "have a good reason.", portname);
+    } else if (!tor_addr_is_loopback(&port->addr)) {
+      log_notice(LD_CONFIG, "You configured a non-loopback address for %sPort. "
+                 "This allows everybody on your local network to use your "
+                 "machine as a proxy.  Make sure this is what you wanted.",
+                 portname);
     }
   } SMARTLIST_FOREACH_END(port);
 }