diff options
author | teor <teor2345@gmail.com> | 2014-10-01 18:37:19 +1000 |
---|---|---|
committer | teor <teor2345@gmail.com> | 2014-10-08 05:36:54 +1100 |
commit | c1dd43d823c74f59f8ba0eff90f6ddab6763f408 (patch) | |
tree | 1d4c88f7f6783df3fb36ebf10d89e92a1b16c99b /src | |
parent | 22a0708133f09d8703b3c64edfc55b5cdf904976 (diff) | |
download | tor-c1dd43d823c74f59f8ba0eff90f6ddab6763f408.tar.gz tor-c1dd43d823c74f59f8ba0eff90f6ddab6763f408.zip |
Stop using default authorities with both Alternate Dir and Bridge Authority
Stop using the default authorities in networks which provide both
AlternateDirAuthority and AlternateBridgeAuthority.
This bug occurred due to an ambiguity around the use of NO_DIRINFO.
(Does it mean "any" or "none"?)
Partially fixes bug 13163.
Diffstat (limited to 'src')
-rw-r--r-- | src/or/config.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/or/config.c b/src/or/config.c index 921d032529..493cfcd2bc 100644 --- a/src/or/config.c +++ b/src/or/config.c @@ -959,7 +959,10 @@ consider_adding_dir_servers(const or_options_t *options, type |= BRIDGE_DIRINFO; if (!options->AlternateDirAuthority) type |= V3_DIRINFO | EXTRAINFO_DIRINFO | MICRODESC_DIRINFO; - add_default_trusted_dir_authorities(type); + /* if type == NO_DIRINFO, we don't want to add any of the + * default authorities, because we've replaced them all */ + if (type != NO_DIRINFO) + add_default_trusted_dir_authorities(type); } if (!options->FallbackDir) add_default_fallback_dir_servers(); |