summaryrefslogtreecommitdiff
path: root/src/or/nodelist.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2010-10-01 19:52:05 -0400
committerNick Mathewson <nickm@torproject.org>2010-10-01 19:52:05 -0400
commitb9f2ccbdcc222869b7561714c285db8b47e52e77 (patch)
tree3592078ecb7bde611ea761d7020e93976d6c609a /src/or/nodelist.c
parent1bb9734e3a745e2a16b58512f47a6db1229a2b75 (diff)
downloadtor-b9f2ccbdcc222869b7561714c285db8b47e52e77.tar.gz
tor-b9f2ccbdcc222869b7561714c285db8b47e52e77.zip
More debugging code for node_t branch
Diffstat (limited to 'src/or/nodelist.c')
-rw-r--r--src/or/nodelist.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/or/nodelist.c b/src/or/nodelist.c
index d303fc67b4..a7946c9a2c 100644
--- a/src/or/nodelist.c
+++ b/src/or/nodelist.c
@@ -593,9 +593,10 @@ node_get_verbose_nickname(const node_t *node,
int
node_allows_single_hop_exits(const node_t *node)
{
- (void)node;
- UNIMPLEMENTED_NODELIST();
- return 0;
+ if (node && node->ri)
+ return node->ri->allow_single_hop_exits;
+ else
+ return 0;
}
/** Return true iff it seems that <b>node</b> has an exit policy that doesn't