mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2025-02-24 22:58:50 +01:00
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.
This commit is contained in:
parent
39a0a2c3ae
commit
11c467f643
2 changed files with 5 additions and 1 deletions
4
changes/bug7285
Normal file
4
changes/bug7285
Normal file
|
@ -0,0 +1,4 @@
|
|||
o Minor bugfixes:
|
||||
- Warn when we are binding low ports when hibernation is enabled;
|
||||
previously we had warned when we were _advertising_ low ports with
|
||||
hibernation enabled. Fixes bug 7285; bugfix on 0.2.3.9-alpha.
|
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue