summaryrefslogtreecommitdiff
path: root/src/or/routerparse.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2006-10-19 15:45:48 +0000
committerNick Mathewson <nickm@torproject.org>2006-10-19 15:45:48 +0000
commit4443934702da0aee0a553bc8b0639fe192b103fd (patch)
treeca72ae98c9fa8bdbd76e8f2da388f26c7da8af7f /src/or/routerparse.c
parent3ef3fcae5553fd61f27ac96fe175709c300b2e2e (diff)
downloadtor-4443934702da0aee0a553bc8b0639fe192b103fd.tar.gz
tor-4443934702da0aee0a553bc8b0639fe192b103fd.zip
r9091@totoro: nickm | 2006-10-19 11:45:28 -0400
Change to BadExit logic: Let authorities set an "I list bad exits" flag. Consider an exit bad if it is listed as bad by more than half of *those* authorities. This gives us a better migration path. svn:r8756
Diffstat (limited to 'src/or/routerparse.c')
-rw-r--r--src/or/routerparse.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/or/routerparse.c b/src/or/routerparse.c
index fce16d40ad..69cebb7059 100644
--- a/src/or/routerparse.c
+++ b/src/or/routerparse.c
@@ -1205,6 +1205,8 @@ networkstatus_parse_from_string(const char *s)
ns->binds_names = 1;
if (!strcmp(tok->args[i], "Versions"))
ns->recommends_versions = 1;
+ if (!strcmp(tok->args[i], "BadExits"))
+ ns->lists_bad_exits = 1;
}
}