Browse Source

Merge remote-tracking branch 'rransom-tor/bug4091'

Nick Mathewson 14 years ago
parent
commit
29825f0bfd
1 changed files with 3 additions and 1 deletions
  1. 3 1
      src/or/config.c

+ 3 - 1
src/or/config.c

@@ -5128,7 +5128,9 @@ static void
 warn_nonlocal_client_ports(const smartlist_t *ports, const char *portname)
 {
   SMARTLIST_FOREACH_BEGIN(ports, const port_cfg_t *, port) {
-    if (!tor_addr_is_internal(&port->addr, 1)) {
+    if (port->is_unix_addr) {
+      /* Unix sockets aren't accessible over a network. */
+    } else if (!tor_addr_is_internal(&port->addr, 1)) {
       log_warn(LD_CONFIG, "You specified a public address for %sPort. "
                "Other people on the Internet might find your computer and "
                "use it as an open proxy. Please don't allow this unless you "