|
@@ -1264,6 +1264,7 @@ options_act(or_options_t *old_options)
|
|
|
|
|
|
/* Check for transitions that need action. */
|
|
|
if (old_options) {
|
|
|
+ int revise_trackexithosts = 0;
|
|
|
if ((options->UseEntryGuards && !old_options->UseEntryGuards) ||
|
|
|
!routerset_equal(old_options->ExcludeNodes,options->ExcludeNodes) ||
|
|
|
!routerset_equal(old_options->ExcludeExitNodes,
|
|
@@ -1276,9 +1277,16 @@ options_act(or_options_t *old_options)
|
|
|
"excluded node lists. Abandoning previous circuits.");
|
|
|
circuit_mark_all_unused_circs();
|
|
|
circuit_expire_all_dirty_circs();
|
|
|
- addressmap_clear_excluded_trackexithosts(options);
|
|
|
+ revise_trackexithosts = 1;
|
|
|
}
|
|
|
|
|
|
+ if (!smartlist_strings_eq(old_options->TrackHostExits,
|
|
|
+ options->TrackHostExits))
|
|
|
+ revise_trackexithosts = 1;
|
|
|
+
|
|
|
+ if (revise_trackexithosts)
|
|
|
+ addressmap_clear_excluded_trackexithosts(options);
|
|
|
+
|
|
|
/* How long should we delay counting bridge stats after becoming a bridge?
|
|
|
* We use this so we don't count people who used our bridge thinking it is
|
|
|
* a relay. If you change this, don't forget to change the log message
|