]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
but don't disable all the default v1 authorities quite yet
authorRoger Dingledine <arma@torproject.org>
Wed, 12 Dec 2007 04:46:16 +0000 (04:46 +0000)
committerRoger Dingledine <arma@torproject.org>
Wed, 12 Dec 2007 04:46:16 +0000 (04:46 +0000)
svn:r12778

src/or/config.c

index fc5bdf1f4df3b5773c60223be5422eb2e26d79f1..f4d245117fa63f3af302cf43af9396784eb437b1 100644 (file)
@@ -889,7 +889,7 @@ consider_adding_dir_authorities(or_options_t *options,
 {
   config_line_t *cl;
   int need_to_update =
-    !smartlist_len(router_get_trusted_dir_servers()) ||
+    !smartlist_len(router_get_trusted_dir_servers()) || !old_options ||
     !config_lines_eq(options->DirServers, old_options->DirServers) ||
     !config_lines_eq(options->AlternateBridgeAuthority,
                      old_options->AlternateBridgeAuthority) ||
@@ -910,7 +910,7 @@ consider_adding_dir_authorities(or_options_t *options,
     if (!options->AlternateBridgeAuthority)
       type |= BRIDGE_AUTHORITY;
     if (!options->AlternateDirAuthority)
-      type |= V2_AUTHORITY | V3_AUTHORITY;
+      type |= V1_AUTHORITY | V2_AUTHORITY | V3_AUTHORITY;
     if (!options->AlternateHSAuthority)
       type |= HIDSERV_AUTHORITY;
     add_default_trusted_dir_authorities(type);