tor

The Tor anonymity network
git clone https://git.dasho.dev/tor.git
Log | Files | Refs | README | LICENSE

commit 23faa03ffc28e8d1132370e861756e84d659be5e
parent 1d4d2deea1987171dea64bf3e563b24194b6ac84
Author: teor <teor@torproject.org>
Date:   Wed, 30 Oct 2019 15:43:30 +1000

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.

Diffstat:
Msrc/feature/relay/relay_config.c | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git 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;