Fix ServerDNSRandomizeCase so that setting it to 0 works.

Bugfix on 0.2.1.7-alpha.  Backport candidate. Fixes bug 905.

svn:r18063
This commit is contained in:
Nick Mathewson
2009-01-10 14:38:14 +00:00
parent bd0e400bc3
commit dbc8a44bae
2 changed files with 5 additions and 3 deletions
+2 -2
View File
@@ -198,9 +198,9 @@ 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);
evdns_set_option("randomize-case:", "1", DNS_OPTIONS_ALL);
else
evdns_set_option("randomize-case", "0", DNS_OPTIONS_ALL);
evdns_set_option("randomize-case:", "0", DNS_OPTIONS_ALL);
if (server_mode(get_options())) {
int r = configure_nameservers(1);
return r;