mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-28 06:13:31 +01:00
Argh. The unset value for OwningControllerFD is NOT -1.
This commit is contained in:
parent
56a3cef4d7
commit
e97adaf8dc
@ -1503,7 +1503,7 @@ get_my_roles(const or_options_t *options)
|
||||
* requires tor to have basic functionnalities. */
|
||||
int is_client = options_any_client_port_set(options) ||
|
||||
options->ControlPort_set ||
|
||||
options->OwningControllerFD >= 0;
|
||||
options->OwningControllerFD != UINT64_MAX;
|
||||
|
||||
if (is_bridge) roles |= PERIODIC_EVENT_ROLE_BRIDGE;
|
||||
if (is_client) roles |= PERIODIC_EVENT_ROLE_CLIENT;
|
||||
|
Loading…
Reference in New Issue
Block a user