diff options
author | Nick Mathewson <nickm@torproject.org> | 2009-05-13 16:55:42 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2009-05-13 16:55:42 -0400 |
commit | 479d21254ac49f6493087ce1385bcfe8d84476d4 (patch) | |
tree | 1c333bdd791d0c677bf297e5e9e93475861ab937 /src/or/config.c | |
parent | ce768fc06e093da114ddfebfc2400c47115c2c38 (diff) | |
parent | 45171cd9e9cb492bd64a1251dcd7758cab686f4b (diff) | |
download | tor-479d21254ac49f6493087ce1385bcfe8d84476d4.tar.gz tor-479d21254ac49f6493087ce1385bcfe8d84476d4.zip |
Merge commit 'origin/maint-0.2.1'
Diffstat (limited to 'src/or/config.c')
-rw-r--r-- | src/or/config.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/or/config.c b/src/or/config.c index 1ac38039ef..9b83e9d814 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."); @@ -3233,6 +3238,15 @@ options_validate(or_options_t *old_options, or_options_t *options, return -1; } + if ((options->BridgeRelay + || options->_PublishServerDescriptor & BRIDGE_AUTHORITY) + && (options->_PublishServerDescriptor + & (V1_AUTHORITY|V2_AUTHORITY|V3_AUTHORITY))) { + REJECT("Bridges are not supposed to publish router descriptors to the " + "directory authorities. Please correct your " + "PublishServerDescriptor line."); + } + if (options->MinUptimeHidServDirectoryV2 < 0) { log_warn(LD_CONFIG, "MinUptimeHidServDirectoryV2 option must be at " "least 0 seconds. Changing to 0."); |