Remove the LearnAuthorityAddrFromCerts option; make it always-on. One option down, ~160 options to go.
svn:r12870
V(HttpsProxyAuthenticator, STRING, NULL),
OBSOLETE("IgnoreVersion"),
V(KeepalivePeriod, INTERVAL, "5 minutes"),
- V(LearnAuthorityAddrFromCerts, BOOL, "1"),
VAR("Log", LINELIST, Logs, NULL),
OBSOLETE("LinkPadding"),
OBSOLETE("LogLevel"),
* cached. */
char *FallbackNetworkstatusFile;
- /** DOCDOC here and in tor.1 */
- /**XXXX020 make this always on? */
- int LearnAuthorityAddrFromCerts;
-
/** DOCDOC here and in tor.1 */
int BridgeRecordUsageByCountry;
char *GeoIPFile;
{
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);
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)) {