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!
This commit is contained in:
Nick Mathewson 2011-10-07 16:34:21 -04:00
parent b49fcc6cf2
commit 8b0ee60fe7

View 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 " "Other people on the Internet might find your computer and "
"use it as an open proxy. Please don't allow this unless you " "use it as an open proxy. Please don't allow this unless you "
"have a good reason.", portname); "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); } SMARTLIST_FOREACH_END(port);
} }