diff options
author | Nick Mathewson <nickm@torproject.org> | 2011-10-07 16:32:04 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2011-10-07 16:32:04 -0400 |
commit | b49fcc6cf2b893fca04eaec8d30bbfe25c04d360 (patch) | |
tree | 8e613bfbfd900af8015eb5505e89a3ac51f512df /src/or | |
parent | e8ed4657764effb4f16fd5721c13f3384fdd8db1 (diff) | |
parent | c1ac0695d5bc64b555c345e4be87b18bab3ae56b (diff) | |
download | tor-b49fcc6cf2b893fca04eaec8d30bbfe25c04d360.tar tor-b49fcc6cf2b893fca04eaec8d30bbfe25c04d360.tar.gz |
Merge remote-tracking branch 'rransom-tor/bug4018'
Diffstat (limited to 'src/or')
-rw-r--r-- | src/or/config.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/or/config.c b/src/or/config.c index 07f00822f..3ac6e945b 100644 --- a/src/or/config.c +++ b/src/or/config.c @@ -5119,12 +5119,13 @@ port_cfg_free(port_cfg_t *port) tor_free(port); } -/** Warn for every port in <b>ports</b> that is not on a loopback address. */ +/** Warn for every port in <b>ports</b> that is on a publicly routable + * address. */ 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_loopback(&port->addr)) { + 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 " |