aboutsummaryrefslogtreecommitdiff
path: root/src/app/config/config.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2019-04-30 12:48:00 -0400
committerNick Mathewson <nickm@torproject.org>2019-05-02 09:22:13 -0400
commit31fb4a78451a98a8d62e1f52e75e372a8a2dd48b (patch)
tree83f66c68ca9df8fe9a7884484501cd33e1855f99 /src/app/config/config.c
parent6f42efaa5926a2f1be89e3b591311f2130931db8 (diff)
downloadtor-31fb4a78451a98a8d62e1f52e75e372a8a2dd48b.tar.gz
tor-31fb4a78451a98a8d62e1f52e75e372a8a2dd48b.zip
Make the bwauth.c module dirauth-only.
Diffstat (limited to 'src/app/config/config.c')
-rw-r--r--src/app/config/config.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/app/config/config.c b/src/app/config/config.c
index 3e0683eb56..26a3061a26 100644
--- a/src/app/config/config.c
+++ b/src/app/config/config.c
@@ -3556,12 +3556,12 @@ options_validate(or_options_t *old_options, or_options_t *options,
options->V3AuthoritativeDir))
REJECT("AuthoritativeDir is set, but none of "
"(Bridge/V3)AuthoritativeDir is set.");
+#ifdef HAVE_MODULE_DIRAUTH
/* If we have a v3bandwidthsfile and it's broken, complain on startup */
if (options->V3BandwidthsFile && !old_options) {
dirserv_read_measured_bandwidths(options->V3BandwidthsFile, NULL, NULL,
NULL);
}
-#ifdef HAVE_MODULE_DIRAUTH
/* same for guardfraction file */
if (options->GuardfractionFile && !old_options) {
dirserv_read_guardfraction_file(options->GuardfractionFile, NULL);