diff options
author | Nick Mathewson <nickm@torproject.org> | 2010-10-13 20:30:40 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2010-10-13 20:30:40 -0400 |
commit | 44674369c5db15f64c7b5fe53c3b7010abb783d5 (patch) | |
tree | 5e4ab85f2263b3980e27b7331db98371742b2b65 /src/or/nodelist.c | |
parent | 3aec6556941433e4770226530457eb79a511b555 (diff) | |
download | tor-44674369c5db15f64c7b5fe53c3b7010abb783d5.tar.gz tor-44674369c5db15f64c7b5fe53c3b7010abb783d5.zip |
Implement node_set_exit_policy_to_reject_all with a flag
Also remove some debugging code.
Diffstat (limited to 'src/or/nodelist.c')
-rw-r--r-- | src/or/nodelist.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/or/nodelist.c b/src/or/nodelist.c index 8145217c2f..d1246679a5 100644 --- a/src/or/nodelist.c +++ b/src/or/nodelist.c @@ -605,6 +605,9 @@ node_allows_single_hop_exits(const node_t *node) int node_exit_policy_rejects_all(const node_t *node) { + if (node->rejects_all) + return 1; + if (node->ri) return node->ri->policy_is_reject_star; else if (node->md) @@ -723,8 +726,3 @@ node_get_declared_family(const node_t *node) else return NULL; } - -/* KILLTHIS XXXX NM -- it's a dummy to keep UNIMPLEMENTED_NODELIST() - * working */ -int unimplemented_nodelist_truth = 1; - |