瀏覽代碼

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 年之前
父節點
當前提交
8b0ee60fe7
共有 1 個文件被更改,包括 5 次插入0 次删除
  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);
 }