summaryrefslogtreecommitdiff
path: root/src/or
diff options
context:
space:
mode:
authorDavid Goulet <dgoulet@torproject.org>2018-04-25 13:43:37 -0400
committerDavid Goulet <dgoulet@torproject.org>2018-05-09 12:49:34 -0400
commit67a41b63063370c2c655a91a801f7be2dd4732a5 (patch)
treef8e3394da4a176d60b3d4145020fbccd4861503d /src/or
parent01ffe8e2f4ca24325e81f040e1ac3a5a17afa5d5 (diff)
downloadtor-67a41b63063370c2c655a91a801f7be2dd4732a5.tar.gz
tor-67a41b63063370c2c655a91a801f7be2dd4732a5.zip
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 <dgoulet@torproject.org>
Diffstat (limited to 'src/or')
-rw-r--r--src/or/config.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/or/config.c b/src/or/config.c
index 20db37ae30..5e84ec1d61 100644
--- a/src/or/config.c
+++ b/src/or/config.c
@@ -8443,7 +8443,6 @@ options_any_client_port_set(const or_options_t *options)
return (options->SocksPort_set ||
options->TransPort_set ||
options->NATDPort_set ||
- options->ControlPort_set ||
options->DNSPort_set ||
options->HTTPTunnelPort_set);
}