summaryrefslogtreecommitdiff
path: root/src/feature/dirauth/dirauth_options.inc
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2019-12-19 08:24:46 -0500
committerNick Mathewson <nickm@torproject.org>2019-12-19 08:57:47 -0500
commitea91edff15014eb24458cb0309e22d761cb170c1 (patch)
treeb03945096897ea43f8d47bfb35b4f2766460e19e /src/feature/dirauth/dirauth_options.inc
parenta6ba56761b6dc22011eee015f371d37d7b399a64 (diff)
downloadtor-ea91edff15014eb24458cb0309e22d761cb170c1.tar.gz
tor-ea91edff15014eb24458cb0309e22d761cb170c1.zip
Dirauth options: move versioning options to dirauth module
This commit moves VersioningAuthoritativeDirectory, RecommendedClientVersions, and RecommendedServerVersions.
Diffstat (limited to 'src/feature/dirauth/dirauth_options.inc')
-rw-r--r--src/feature/dirauth/dirauth_options.inc13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/feature/dirauth/dirauth_options.inc b/src/feature/dirauth/dirauth_options.inc
index 6b66f1e289..f9ca2bb4dc 100644
--- a/src/feature/dirauth/dirauth_options.inc
+++ b/src/feature/dirauth/dirauth_options.inc
@@ -15,4 +15,17 @@ BEGIN_CONF_STRUCT(dirauth_options_t)
/** Do not permit more than this number of servers per IP address. */
CONF_VAR(AuthDirMaxServersPerAddr, POSINT, 0, "2")
+/** Which versions of tor should we tell users to run? */
+CONF_VAR(RecommendedVersions, LINELIST, 0, NULL)
+
+/** Which versions of tor should we tell users to run on clients? */
+CONF_VAR(RecommendedClientVersions, LINELIST, 0, NULL)
+
+/** Which versions of tor should we tell users to run on relays? */
+CONF_VAR(RecommendedServerVersions, LINELIST, 0, NULL)
+
+/** Boolean: is this an authoritative directory that's willing to recommend
+ * versions? */
+CONF_VAR(VersioningAuthoritativeDirectory, BOOL, 0, "0")
+
END_CONF_STRUCT(dirauth_options_t)