mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-12-02 16:43:32 +01:00
Set ConnDirectionStatistics back to 0 if not running as relay.
This commit is contained in:
parent
a201a5396e
commit
fda2aa7703
7
changes/bug15604
Normal file
7
changes/bug15604
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
o Minor bugfixes
|
||||||
|
- Disregard the ConnDirectionStatistics torrc options when Tor is
|
||||||
|
not a relay since in that mode of operation no sensible data is
|
||||||
|
being collected and because Tor might run into measurement hiccups
|
||||||
|
when running as a client for some time, then becoming a relay. Fixes
|
||||||
|
bug 15604; bugfix on 0.2.2.35.
|
||||||
|
|
@ -1736,6 +1736,7 @@ options_act(const or_options_t *old_options)
|
|||||||
if (!public_server_mode(options)) {
|
if (!public_server_mode(options)) {
|
||||||
options->CellStatistics = 0;
|
options->CellStatistics = 0;
|
||||||
options->EntryStatistics = 0;
|
options->EntryStatistics = 0;
|
||||||
|
options->ConnDirectionStatistics = 0;
|
||||||
options->HiddenServiceStatistics = 0;
|
options->HiddenServiceStatistics = 0;
|
||||||
options->ExitPortStatistics = 0;
|
options->ExitPortStatistics = 0;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user