[tor-commits] [tor/master] reinstate a notice for the non-loopback socksport case

nickm at torproject.org nickm at torproject.org
Fri Oct 7 20:33:01 UTC 2011


commit 8b0ee60fe7752f4894fff8334eff786e80941302
Author: Nick Mathewson <nickm at torproject.org>
Date:   Fri Oct 7 16:34:21 2011 -0400

    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!
---
 src/or/config.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/src/or/config.c b/src/or/config.c
index 3ac6e94..2705ba5 100644
--- a/src/or/config.c
+++ b/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);
 }



More information about the tor-commits mailing list