From 54ca0387a59499f516dae689a34807dad6410b3d Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Mon, 28 Aug 2006 03:15:55 +0000 Subject: r8608@Kushana: nickm | 2006-08-27 16:57:47 -0400 Make it possible to change nameserver options while Tor is running. svn:r8255 --- src/or/config.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src/or/config.c') 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; -- cgit v1.2.3-54-g00ecf