diff options
author | Nick Mathewson <nickm@torproject.org> | 2006-08-28 03:15:55 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2006-08-28 03:15:55 +0000 |
commit | 54ca0387a59499f516dae689a34807dad6410b3d (patch) | |
tree | a234614bf9f15e037ca0e3e3b20cf6da0c6efcbd /src/or/config.c | |
parent | be7054c6265f19134edc6cfef482b13e86e59cb5 (diff) | |
download | tor-54ca0387a59499f516dae689a34807dad6410b3d.tar.gz tor-54ca0387a59499f516dae689a34807dad6410b3d.zip |
r8608@Kushana: nickm | 2006-08-27 16:57:47 -0400
Make it possible to change nameserver options while Tor is running.
svn:r8255
Diffstat (limited to 'src/or/config.c')
-rw-r--r-- | src/or/config.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/or/config.c b/src/or/config.c index d33b556191..86fd8066f9 100644 --- a/src/or/config.c +++ b/src/or/config.c @@ -802,8 +802,13 @@ options_act(or_options_t *old_options) inform_testing_reachability(); } cpuworkers_rotate(); - dnsworkers_rotate(); + dns_reset(); } +#ifdef USE_EVENTDNS + else { + dns_reset(); + } +#endif } /* Check if we need to parse and add the EntryNodes config option. */ @@ -2555,6 +2560,7 @@ options_transition_affects_workers(or_options_t *old_options, if (!opt_streq(old_options->DataDirectory, new_options->DataDirectory) || old_options->NumCpus != new_options->NumCpus || old_options->ORPort != new_options->ORPort || + old_options->SearchDomains != new_options->SearchDomains || old_options->SafeLogging != new_options->SafeLogging || !config_lines_eq(old_options->Logs, new_options->Logs)) return 1; |