]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Support setting serverdnsrandomizecase during sighup. Backportable, unless too trivial.
authorNick Mathewson <nickm@torproject.org>
Wed, 28 Jan 2009 19:53:03 +0000 (19:53 +0000)
committerNick Mathewson <nickm@torproject.org>
Wed, 28 Jan 2009 19:53:03 +0000 (19:53 +0000)
svn:r18307

ChangeLog
src/or/dns.c

index aac98ff998343b6dff9128e0076cee765b19ab3b..788658da5bb8a6e72d9c2ae1ea75f7b6ec69a8cc 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -23,6 +23,8 @@ Changes in version 0.2.1.12-alpha - 2009-02-??
     - Resolve a very rare crash bug that could occur when the user forced
       a nameserver reconfiguration during the middle of a nameserver
       probe.  Fixes bug 526.  Bugfix on 0.1.2.1-alpha.
+    - Support changing value of ServerDNSRandomizeCase during SIGHUP.
+      Bugfix on 0.2.1.7-alpha.
 
   o Minor features:
     - Support platforms where time_t is 64 bits long. (Congratulations,
index d57e8fc5624199f1936af670aba7497e61b0d72e..74d187be58076c0685d046c6aaa02ee10d7b5f74 100644 (file)
@@ -197,10 +197,6 @@ dns_init(void)
 {
   init_cache_map();
   evdns_set_random_bytes_fn(_dns_randfn);
-  if (get_options()->ServerDNSRandomizeCase)
-    evdns_set_option("randomize-case:", "1", DNS_OPTIONS_ALL);
-  else
-    evdns_set_option("randomize-case:", "0", DNS_OPTIONS_ALL);
   if (server_mode(get_options())) {
     int r = configure_nameservers(1);
     return r;
@@ -1121,6 +1117,11 @@ configure_nameservers(int force)
     }
   }
 
+  if (options->ServerDNSRandomizeCase)
+    evdns_set_option("randomize-case:", "1", DNS_OPTIONS_ALL);
+  else
+    evdns_set_option("randomize-case:", "0", DNS_OPTIONS_ALL);
+
   evdns_set_log_fn(evdns_log_cb);
   if (conf_fname) {
     if (stat(conf_fname, &st)) {