Loading changes/bug5824 0 → 100644 +4 −0 Original line number Diff line number Diff line o Minor bugfixes: - Bridges now never collect statistics that were designed for relays. Fix for bug 5824; bugfix on 0.2.3.8-alpha. changes/bug5824-2 0 → 100644 +4 −0 Original line number Diff line number Diff line o Minor bugfixes: - Bridges now report complete directory request statistics. Related to bug 5824; bugfix on 0.2.2.1-alpha. src/or/config.c +6 −2 Original line number Diff line number Diff line Loading @@ -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; } Loading src/or/geoip.c +3 −2 Original line number Diff line number Diff line Loading @@ -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 Loading
changes/bug5824 0 → 100644 +4 −0 Original line number Diff line number Diff line o Minor bugfixes: - Bridges now never collect statistics that were designed for relays. Fix for bug 5824; bugfix on 0.2.3.8-alpha.
changes/bug5824-2 0 → 100644 +4 −0 Original line number Diff line number Diff line o Minor bugfixes: - Bridges now report complete directory request statistics. Related to bug 5824; bugfix on 0.2.2.1-alpha.
src/or/config.c +6 −2 Original line number Diff line number Diff line Loading @@ -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; } Loading
src/or/geoip.c +3 −2 Original line number Diff line number Diff line Loading @@ -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