aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2011-07-07 11:05:06 -0400
committerNick Mathewson <nickm@torproject.org>2011-07-07 11:05:06 -0400
commitbc3c54a07f035c69b81cbf7817b8071938abf2ca (patch)
tree30802aaf9fb05cb7e9e94944db7f3e7dd0627b62 /src
parentaf0e8d834e4b1da029f7505745225f848e96def6 (diff)
downloadtor-bc3c54a07f035c69b81cbf7817b8071938abf2ca.tar
tor-bc3c54a07f035c69b81cbf7817b8071938abf2ca.tar.gz
Have transitions in public_server_mode count as affects_descriptor
Previously, we'd get a new descriptor for free when public_server_mode() changed, since it would count as affects_workers, which would call init_keys(), which would make us regenerate a new descriptor. But now that we fixed bug 3263, init_keys() is no longer necessarily a new descriptor, and so we need to make sure that public_server_mode() counts as a descriptor transition.
Diffstat (limited to 'src')
-rw-r--r--src/or/config.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/or/config.c b/src/or/config.c
index 36fb991e3..4bdb0384d 100644
--- a/src/or/config.c
+++ b/src/or/config.c
@@ -3847,7 +3847,8 @@ options_transition_affects_descriptor(or_options_t *old_options,
!opt_streq(old_options->ContactInfo, new_options->ContactInfo) ||
!opt_streq(old_options->MyFamily, new_options->MyFamily) ||
!opt_streq(old_options->AccountingStart, new_options->AccountingStart) ||
- old_options->AccountingMax != new_options->AccountingMax)
+ old_options->AccountingMax != new_options->AccountingMax ||
+ public_server_mode(old_options) != public_server_mode(new_options))
return 1;
return 0;