summaryrefslogtreecommitdiff
path: root/src/or/config.c
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2007-12-10 16:49:54 +0000
committerRoger Dingledine <arma@torproject.org>2007-12-10 16:49:54 +0000
commitee6ae92670b587baa45c5088f52278db4bef0205 (patch)
treeae261f5f2ba3938db84e92c7c0dc4d6057e81274 /src/or/config.c
parent5928203e9f117e9022ff780fbb0f0c560869b0bc (diff)
downloadtor-ee6ae92670b587baa45c5088f52278db4bef0205.tar.gz
tor-ee6ae92670b587baa45c5088f52278db4bef0205.zip
New config options AuthDirBadDir and AuthDirListBadDirs for
authorities to mark certain relays as "bad directories" in the networkstatus documents. Also supports the "!baddir" directive in the approved-routers file. svn:r12754
Diffstat (limited to 'src/or/config.c')
-rw-r--r--src/or/config.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/or/config.c b/src/or/config.c
index 9b358fc17e..81c0fcd9ce 100644
--- a/src/or/config.c
+++ b/src/or/config.c
@@ -131,10 +131,12 @@ static config_var_t _option_vars[] = {
V(AllowInvalidNodes, CSV, "middle,rendezvous"),
V(AllowNonRFC953Hostnames, BOOL, "0"),
V(AssumeReachable, BOOL, "0"),
+ V(AuthDirBadDir, LINELIST, NULL),
V(AuthDirBadExit, LINELIST, NULL),
V(AuthDirInvalid, LINELIST, NULL),
V(AuthDirReject, LINELIST, NULL),
V(AuthDirRejectUnlisted, BOOL, "0"),
+ V(AuthDirListBadDirs, BOOL, "0"),
V(AuthDirListBadExits, BOOL, "0"),
VAR("AuthoritativeDirectory", BOOL, AuthoritativeDir, "0"),
V(AutomapHostsOnResolve, BOOL, "0"),