diff options
author | Nick Mathewson <nickm@torproject.org> | 2007-12-19 04:24:05 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2007-12-19 04:24:05 +0000 |
commit | a697573ce911f0b16e5cb5e8d73d4863883f82ac (patch) | |
tree | 8612795ee0479d3fad794f48b49554ef3cf93ec8 /src/or/routerlist.c | |
parent | 95fecd6fbc1529205030298245ea838a4dc518d6 (diff) | |
download | tor-a697573ce911f0b16e5cb5e8d73d4863883f82ac.tar tor-a697573ce911f0b16e5cb5e8d73d4863883f82ac.tar.gz |
r15562@tombo: nickm | 2007-12-18 23:23:59 -0500
Remove the LearnAuthorityAddrFromCerts option; make it always-on. One option down, ~160 options to go.
svn:r12870
Diffstat (limited to 'src/or/routerlist.c')
-rw-r--r-- | src/or/routerlist.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/or/routerlist.c b/src/or/routerlist.c index e66f8c0b1..f512659cd 100644 --- a/src/or/routerlist.c +++ b/src/or/routerlist.c @@ -109,7 +109,6 @@ trusted_dirs_load_certs_from_string(const char *contents, int from_store) { trusted_dir_server_t *ds; const char *s, *eos; - or_options_t *options = get_options(); for (s = contents; *s; s = eos) { authority_cert_t *cert = authority_cert_parse_from_string(s, &eos); @@ -151,8 +150,9 @@ trusted_dirs_load_certs_from_string(const char *contents, int from_store) ds->nickname, hex_str(cert->signing_key_digest,DIGEST_LEN)); smartlist_add(ds->v3_certs, cert); - if (options->LearnAuthorityAddrFromCerts && - cert->cache_info.published_on > ds->addr_current_at) { + if (cert->cache_info.published_on > ds->addr_current_at) { + /* Check to see whether we should update our view of the authority's + * address. */ if (cert->addr && cert->dir_port && (ds->addr != cert->addr || ds->dir_port != cert->dir_port)) { |