diff options
author | Nick Mathewson <nickm@torproject.org> | 2005-10-05 23:02:40 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2005-10-05 23:02:40 +0000 |
commit | ba67d14d407adcf603d422c07236438083aa0f30 (patch) | |
tree | cda69528dbd320ba5f7d3088262686a59785f5c1 /src/or/config.c | |
parent | f12663a4ce2a61d5b1f4975dcf27d9f2adaa128e (diff) | |
download | tor-ba67d14d407adcf603d422c07236438083aa0f30.tar.gz tor-ba67d14d407adcf603d422c07236438083aa0f30.zip |
On sighup, if usehelpernodes changed to 1, use new circuits.
svn:r5203
Diffstat (limited to 'src/or/config.c')
-rw-r--r-- | src/or/config.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/or/config.c b/src/or/config.c index 4655e2c2bd..d7ac5f72c6 100644 --- a/src/or/config.c +++ b/src/or/config.c @@ -623,6 +623,12 @@ options_act(or_options_t *old_options) /* Check for transitions that need action. */ if (old_options) { + if (options->UseHelperNodes && !old_options->UseHelperNodes) { + log_fn(LOG_INFO, "Switching to helper nodes; abandoning previous circuits"); + circuit_mark_all_unused_circs(); + circuit_expire_all_dirty_circs(); + } + if (options_transition_affects_workers(old_options, options)) { log_fn(LOG_INFO,"Worker-related options changed. Rotating workers."); cpuworkers_rotate(); |