]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Having a ControlPort open doesn't mean we are a client
authorDavid Goulet <dgoulet@torproject.org>
Wed, 9 May 2018 16:40:06 +0000 (12:40 -0400)
committerDavid Goulet <dgoulet@torproject.org>
Wed, 9 May 2018 16:50:53 +0000 (12:50 -0400)
The 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>
changes/ticket26062 [new file with mode: 0644]
src/or/networkstatus.c

diff --git a/changes/ticket26062 b/changes/ticket26062
new file mode 100644 (file)
index 0000000..1ee49d8
--- /dev/null
@@ -0,0 +1,3 @@
+  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.
index d9ae32560ef844196bee7fb8dca460631917a657..d8e2c00273c507c08056fbe04d23b2fdb4f79dc4 100644 (file)
@@ -1584,7 +1584,6 @@ 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);
 }