summaryrefslogtreecommitdiff
path: root/src/or/config.c
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2006-07-04 20:25:17 +0000
committerRoger Dingledine <arma@torproject.org>2006-07-04 20:25:17 +0000
commit98c6bf619261026439bdd4dd9ba95113d77ac641 (patch)
tree8c9b809030fe00c42bb43a13662c0c537b068d96 /src/or/config.c
parent4fc7426b938c7840456604d6010552340f59ce2d (diff)
downloadtor-98c6bf619261026439bdd4dd9ba95113d77ac641.tar.gz
tor-98c6bf619261026439bdd4dd9ba95113d77ac641.zip
oops, we were ignoring options->ExcludeNodes when picking entry guards.
it is still the case that we ignore it with respect to entry guards that we've already picked. svn:r6726
Diffstat (limited to 'src/or/config.c')
-rw-r--r--src/or/config.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/or/config.c b/src/or/config.c
index a052aa4329..fcac6fff53 100644
--- a/src/or/config.c
+++ b/src/or/config.c
@@ -808,6 +808,12 @@ options_act(or_options_t *old_options)
!opt_streq(old_options->EntryNodes, options->EntryNodes)))
entry_nodes_should_be_added();
+ /* If the user wants to avoid certain nodes, make sure none of them
+ * are already entryguards */
+ if (options->ExcludeNodes) {
+ // XXX TODO
+ }
+
/* Since our options changed, we might need to regenerate and upload our
* server descriptor.
*/