aboutsummaryrefslogtreecommitdiff
path: root/src/app/config/config.c
diff options
context:
space:
mode:
authorDavid Goulet <dgoulet@torproject.org>2020-02-11 09:56:44 -0500
committerDavid Goulet <dgoulet@torproject.org>2020-02-11 09:57:05 -0500
commit735aa208b1592e166d03ec96e90422293d26b98a (patch)
treeab9b503d54c8cdd18cd0954d2b99de1fccfdf6a2 /src/app/config/config.c
parentbd4f4cb5f0f98f224f0f707c6dd00d2fd8e55a7a (diff)
downloadtor-735aa208b1592e166d03ec96e90422293d26b98a.tar.gz
tor-735aa208b1592e166d03ec96e90422293d26b98a.zip
dirauth: Add option AuthDirRejectRequestsUnderLoad
This controls the previous feature added that makes dirauth send back a 503 error code on non relay connections if under bandwidth pressure. Signed-off-by: David Goulet <dgoulet@torproject.org>
Diffstat (limited to 'src/app/config/config.c')
-rw-r--r--src/app/config/config.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/app/config/config.c b/src/app/config/config.c
index deda2448b6..89ec26f05c 100644
--- a/src/app/config/config.c
+++ b/src/app/config/config.c
@@ -671,6 +671,7 @@ static const config_var_t option_vars_[] = {
OBSOLETE("UseNTorHandshake"),
V(User, STRING, NULL),
OBSOLETE("UserspaceIOCPBuffers"),
+ V(AuthDirRejectRequestsUnderLoad, BOOL, "1"),
V(AuthDirSharedRandomness, BOOL, "1"),
V(AuthDirTestEd25519LinkKeys, BOOL, "1"),
OBSOLETE("V1AuthoritativeDirectory"),