diff options
author | Nick Mathewson <nickm@torproject.org> | 2009-05-12 15:35:53 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2009-05-13 16:45:59 -0400 |
commit | fc091e8a96f2e2db9516f4046bec63f1e17a8f71 (patch) | |
tree | a75ef03f85d263808c9a5e3a87c6c9816b857da3 | |
parent | c36efb0c451b3cc55d6ebf634af451f9d0b542b9 (diff) | |
download | tor-fc091e8a96f2e2db9516f4046bec63f1e17a8f71.tar.gz tor-fc091e8a96f2e2db9516f4046bec63f1e17a8f71.zip |
When our bridge status changes, forget old geoip data.
This fixes bug 932, where all of our usage totals for users when we
were a regular server would get included in the extrainfo document.
-rw-r--r-- | src/or/config.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/or/config.c b/src/or/config.c index 71dd391664..3d757c1bbb 100644 --- a/src/or/config.c +++ b/src/or/config.c @@ -1329,6 +1329,11 @@ options_act(or_options_t *old_options) circuit_expire_all_dirty_circs(); } + if (! bool_eq(options->BridgeRelay, old_options->BridgeRelay)) { + log_info(LD_GENERAL, "Bridge status changed. Forgetting GeoIP stats."); + geoip_remove_old_clients(time(NULL)+3600); + } + if (options_transition_affects_workers(old_options, options)) { log_info(LD_GENERAL, "Worker-related options changed. Rotating workers."); |