Skip to content
Snippets Groups Projects
Commit 23faa03f authored by teor's avatar teor
Browse files

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.
parent 1d4d2dee
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment