diff options
author | Nick Mathewson <nickm@torproject.org> | 2012-11-06 17:15:39 -0500 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2012-11-06 17:15:39 -0500 |
commit | 11c467f6431773abaa4cced036b3bf87d4ea7f22 (patch) | |
tree | f85a9d5381df7f9ddef311bcdaf28a2e713e48d4 /src/or/config.c | |
parent | 39a0a2c3ae8c93ceed42f6d2d1143002c231fc16 (diff) | |
download | tor-11c467f6431773abaa4cced036b3bf87d4ea7f22.tar.gz tor-11c467f6431773abaa4cced036b3bf87d4ea7f22.zip |
Fix a stupid logic-error in warnings about low ports.
Instead of warning about low ports that are advertised, we should have
been warning about low ports that we're listening on. Bug 7285, fix
on 0.2.3.9-alpha.
Diffstat (limited to 'src/or/config.c')
-rw-r--r-- | src/or/config.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/config.c b/src/or/config.c index dca49f5cf4..bf32fae0e2 100644 --- a/src/or/config.c +++ b/src/or/config.c @@ -5004,7 +5004,7 @@ check_server_ports(const smartlist_t *ports, continue; } #ifndef _WIN32 - if (!port->no_advertise && port->port < 1024) + if (!port->no_listen && port->port < 1024) ++n_low_port; #endif } SMARTLIST_FOREACH_END(port); |