]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
reinstate a notice for the non-loopback socksport case
authorNick Mathewson <nickm@torproject.org>
Fri, 7 Oct 2011 20:34:21 +0000 (16:34 -0400)
committerNick Mathewson <nickm@torproject.org>
Fri, 7 Oct 2011 20:34:21 +0000 (16:34 -0400)
Thanks to prop171, it's no longer a crazy thing to do, but you should
make sure that you really meant it!

src/or/config.c

index 3ac6e945becd9dbed28e234689b4d407dcbd3c69..2705ba5a16f75a114be6c1c04cf29c4c90992c4c 100644 (file)
@@ -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);
 }