diff options
author | Nick Mathewson <nickm@torproject.org> | 2019-12-19 08:50:19 -0500 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2019-12-19 08:57:47 -0500 |
commit | 7d5e360c3b74e52ecc997a6accefd39fbbd6f092 (patch) | |
tree | 0f310cbac57afc5a31951f59c5b4a805c976f469 /src/feature/dirauth/dirauth_options.inc | |
parent | ea91edff15014eb24458cb0309e22d761cb170c1 (diff) | |
download | tor-7d5e360c3b74e52ecc997a6accefd39fbbd6f092.tar.gz tor-7d5e360c3b74e52ecc997a6accefd39fbbd6f092.zip |
Move BW-guarantee options in to dirauth module.
Diffstat (limited to 'src/feature/dirauth/dirauth_options.inc')
-rw-r--r-- | src/feature/dirauth/dirauth_options.inc | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/feature/dirauth/dirauth_options.inc b/src/feature/dirauth/dirauth_options.inc index f9ca2bb4dc..1870f46511 100644 --- a/src/feature/dirauth/dirauth_options.inc +++ b/src/feature/dirauth/dirauth_options.inc @@ -12,6 +12,14 @@ /** Holds configuration about our directory authority options. */ BEGIN_CONF_STRUCT(dirauth_options_t) +/** If non-zero, always vote the Fast flag for any relay advertising + * this amount of capacity or more. */ +CONF_VAR(AuthDirFastGuarantee, MEMUNIT, 0, "100 KB") + +/** If non-zero, this advertised capacity or more is always sufficient + * to satisfy the bandwidth requirement for the Guard flag. */ +CONF_VAR(AuthDirGuardBWGuarantee, MEMUNIT, 0, "2 MB") + /** Do not permit more than this number of servers per IP address. */ CONF_VAR(AuthDirMaxServersPerAddr, POSINT, 0, "2") |