Commit 67a41b63 authored by David Goulet's avatar David Goulet 🤘
Browse files

Having a ControlPort open doesn't mean we are a client



The options_any_client_port_set() returns true if the ControlPort is set which
is wrong because we can have that port open but still not behave as a tor
client (like many relays for instance).

Fixes #26062
Signed-off-by: David Goulet's avatarDavid Goulet <dgoulet@torproject.org>
parent 01ffe8e2
o Minor bugfixes (client):
- Don't consider Tor running as a client if the ControlPort is open. Fixes
bug 26062; bugfix on 0.2.9.4-alpha.
...@@ -8443,7 +8443,6 @@ options_any_client_port_set(const or_options_t *options) ...@@ -8443,7 +8443,6 @@ options_any_client_port_set(const or_options_t *options)
return (options->SocksPort_set || return (options->SocksPort_set ||
options->TransPort_set || options->TransPort_set ||
options->NATDPort_set || options->NATDPort_set ||
options->ControlPort_set ||
options->DNSPort_set || options->DNSPort_set ||
options->HTTPTunnelPort_set); options->HTTPTunnelPort_set);
} }
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment