mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-30 23:53:32 +01:00
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.
This commit is contained in:
parent
1d4d2deea1
commit
23faa03ffc
@ -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:
|
/* We want to reinit keys as needed before we do much of anything else:
|
||||||
keys are important, and other things can depend on them. */
|
keys are important, and other things can depend on them. */
|
||||||
if (transition_affects_workers ||
|
if (transition_affects_workers ||
|
||||||
(options->V3AuthoritativeDir && (!old_options ||
|
(authdir_mode_v3(options) && (!old_options ||
|
||||||
!old_options->V3AuthoritativeDir))) {
|
!authdir_mode_v3(old_options)))) {
|
||||||
if (init_keys() < 0) {
|
if (init_keys() < 0) {
|
||||||
log_warn(LD_BUG,"Error initializing keys; exiting");
|
log_warn(LD_BUG,"Error initializing keys; exiting");
|
||||||
return -1;
|
return -1;
|
||||||
|
Loading…
Reference in New Issue
Block a user