From 23faa03ffc28e8d1132370e861756e84d659be5e Mon Sep 17 00:00:00 2001 From: teor Date: Wed, 30 Oct 2019 15:43:30 +1000 Subject: relay/config: Remove direct references to dirauth options All *AuthoritativeDir* options are now accessed via the authmode functions in relay_config.c, relay/transport_config.c, and config.c. Part of 32213. --- src/feature/relay/relay_config.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/feature/relay') diff --git a/src/feature/relay/relay_config.c b/src/feature/relay/relay_config.c index ac00dbd141..7ef2a15132 100644 --- a/src/feature/relay/relay_config.c +++ b/src/feature/relay/relay_config.c @@ -1044,8 +1044,8 @@ options_act_relay(const or_options_t *old_options) /* We want to reinit keys as needed before we do much of anything else: keys are important, and other things can depend on them. */ if (transition_affects_workers || - (options->V3AuthoritativeDir && (!old_options || - !old_options->V3AuthoritativeDir))) { + (authdir_mode_v3(options) && (!old_options || + !authdir_mode_v3(old_options)))) { if (init_keys() < 0) { log_warn(LD_BUG,"Error initializing keys; exiting"); return -1; -- cgit v1.2.3-54-g00ecf