mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-19 18:00:33 +01:00
Merge remote-tracking branch 'karsten/task-5824'
This commit is contained in:
commit
043329eeb6
4
changes/bug5824
Normal file
4
changes/bug5824
Normal file
@ -0,0 +1,4 @@
|
||||
o Minor bugfixes:
|
||||
- Bridges now never collect statistics that were designed for relays.
|
||||
Fix for bug 5824; bugfix on 0.2.3.8-alpha.
|
||||
|
4
changes/bug5824-2
Normal file
4
changes/bug5824-2
Normal file
@ -0,0 +1,4 @@
|
||||
o Minor bugfixes:
|
||||
- Bridges now report complete directory request statistics. Related to
|
||||
bug 5824; bugfix on 0.2.2.1-alpha.
|
||||
|
@ -1660,10 +1660,14 @@ options_act(const or_options_t *old_options)
|
||||
time_t now = time(NULL);
|
||||
int print_notice = 0;
|
||||
|
||||
/* If we aren't acting as a server, we can't collect stats anyway. */
|
||||
/* Only collect directory-request statistics on relays and bridges. */
|
||||
if (!server_mode(options)) {
|
||||
options->CellStatistics = 0;
|
||||
options->DirReqStatistics = 0;
|
||||
}
|
||||
|
||||
/* Only collect other relay-only statistics on relays. */
|
||||
if (!public_server_mode(options)) {
|
||||
options->CellStatistics = 0;
|
||||
options->EntryStatistics = 0;
|
||||
options->ExitPortStatistics = 0;
|
||||
}
|
||||
|
@ -556,8 +556,9 @@ geoip_note_client_seen(geoip_client_action_t action,
|
||||
(!(options->BridgeRelay && options->BridgeRecordUsageByCountry)))
|
||||
return;
|
||||
} else {
|
||||
if (options->BridgeRelay || options->BridgeAuthoritativeDir ||
|
||||
!options->DirReqStatistics)
|
||||
/* Only gather directory-request statistics if configured, and
|
||||
* forcibly disable them on bridge authorities. */
|
||||
if (!options->DirReqStatistics || options->BridgeAuthoritativeDir)
|
||||
return;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user