mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-24 12:23:32 +01:00
Merge remote-tracking branch 'origin/maint-0.2.2'
This commit is contained in:
commit
53dac6df18
7
changes/bug4353
Normal file
7
changes/bug4353
Normal file
@ -0,0 +1,7 @@
|
||||
o Minor bugfixes:
|
||||
- When running as client without a geoip database, do not print a
|
||||
misleading (and plain wrong) log message that we're collecting
|
||||
dirreq statistics - we're not collecting statistics as clients.
|
||||
Also don't create a useless (because empty) stats file in the
|
||||
stats/ directory. Fixes bug 4353, bugfix on 0.2.2.34.
|
||||
|
@ -1541,6 +1541,15 @@ options_act(const or_options_t *old_options)
|
||||
options->BridgeAuthoritativeDir) {
|
||||
time_t now = time(NULL);
|
||||
int print_notice = 0;
|
||||
|
||||
/* If we aren't acting as a server, we can't collect stats anyway. */
|
||||
if (!server_mode(options)) {
|
||||
options->CellStatistics = 0;
|
||||
options->DirReqStatistics = 0;
|
||||
options->EntryStatistics = 0;
|
||||
options->ExitPortStatistics = 0;
|
||||
}
|
||||
|
||||
if ((!old_options || !old_options->CellStatistics) &&
|
||||
options->CellStatistics) {
|
||||
rep_hist_buffer_stats_init(now);
|
||||
|
Loading…
Reference in New Issue
Block a user