summaryrefslogtreecommitdiff
path: root/src/or/routerparse.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2006-10-11 22:06:01 +0000
committerNick Mathewson <nickm@torproject.org>2006-10-11 22:06:01 +0000
commiteca28f24f51a3b7e59a22002d8119db8a98c781a (patch)
treeb35c2427cc76b50c021863d94f7d481cb9d4d0db /src/or/routerparse.c
parent7f3fc70945e8f3286c9701c168fa364003949b3e (diff)
downloadtor-eca28f24f51a3b7e59a22002d8119db8a98c781a.tar.gz
tor-eca28f24f51a3b7e59a22002d8119db8a98c781a.zip
r9004@totoro: nickm | 2006-10-11 18:05:24 -0400
Add client support for a 'BadExit' flag, so authorities can say "Server X is a poor choise for your nytimes.com connections, as it seems to direct them to HoorayForMao.com or (more likely) WouldYouLikeToBuyTheseFineEncyclopedias.com" svn:r8690
Diffstat (limited to 'src/or/routerparse.c')
-rw-r--r--src/or/routerparse.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/or/routerparse.c b/src/or/routerparse.c
index 060f3b7839..fce16d40ad 100644
--- a/src/or/routerparse.c
+++ b/src/or/routerparse.c
@@ -1061,6 +1061,9 @@ routerstatus_parse_entry_from_string(const char **s, smartlist_t *tokens)
rs->is_v2_dir = 1;
else if (!strcmp(tok->args[i], "Guard"))
rs->is_possible_guard = 1;
+ else if (!strcmp(tok->args[i], "BadExit"))
+ rs->is_bad_exit = 1;
+
}
}