diff options
author | David Goulet <dgoulet@torproject.org> | 2017-01-27 09:32:05 -0500 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2017-02-01 09:29:53 -0500 |
commit | 51b562c605e2a959ee51ee85bd40de887adf9dea (patch) | |
tree | eb3031ab7b8ec255e7d43f19b1ac34cb60c77fd0 /src/or/or.h | |
parent | 8bd3c1b74df450d2bf4d1069c975c8babe5b770e (diff) | |
download | tor-51b562c605e2a959ee51ee85bd40de887adf9dea.tar.gz tor-51b562c605e2a959ee51ee85bd40de887adf9dea.zip |
Use an internal variable for HiddenServiceStatistics
Stop modifying the value of our torrc option HiddenServiceStatistics just
because we're not a bridge or relay. This bug was causing Tor Browser users to
write "HiddenServiceStatistics 0" in their torrc files as if they had chosen
to change the config.
Fixes #21150
Signed-off-by: David Goulet <dgoulet@torproject.org>
Diffstat (limited to 'src/or/or.h')
-rw-r--r-- | src/or/or.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/or/or.h b/src/or/or.h index 18fff78942..0db9f23604 100644 --- a/src/or/or.h +++ b/src/or/or.h @@ -4168,6 +4168,10 @@ typedef struct { /** If true, the user wants us to collect statistics as hidden service * directory, introduction point, or rendezvous point. */ + int HiddenServiceStatistics_option; + /** Internal variable to remember whether we're actually acting on + * HiddenServiceStatistics_option -- yes if it's set and we're a server, + * else no. */ int HiddenServiceStatistics; /** If true, include statistics file contents in extra-info documents. */ |