mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-12-06 19:41:15 +01:00
Make FooPort 0 correctly disable the FooPort.
Since the prop171 stuff, it had instead made Tor bind port 0, and re-bind it differently all the time. Resolves bug3704; not in any released version.
This commit is contained in:
+1
-1
@@ -5118,7 +5118,7 @@ parse_client_port_config(smartlist_t *out,
|
||||
}
|
||||
} SMARTLIST_FOREACH_END(elt);
|
||||
|
||||
if (out) {
|
||||
if (out && port) {
|
||||
port_cfg_t *cfg = tor_malloc_zero(sizeof(port_cfg_t));
|
||||
cfg->type = listener_type;
|
||||
cfg->port = port;
|
||||
|
||||
Reference in New Issue
Block a user