diff options
author | Sebastian Hahn <sebastian@torproject.org> | 2010-02-05 13:40:31 +0100 |
---|---|---|
committer | Sebastian Hahn <sebastian@torproject.org> | 2010-02-08 16:46:22 +0100 |
commit | 20422cde2b71c079e88dcf3bfc2b1f1b4bc23c1c (patch) | |
tree | 9447ca6f82a666be018bd88dfcb12029310bd84f | |
parent | 080e8f50f87fb7c0c099b1341173fa05c82a42e8 (diff) | |
download | tor-20422cde2b71c079e88dcf3bfc2b1f1b4bc23c1c.tar tor-20422cde2b71c079e88dcf3bfc2b1f1b4bc23c1c.tar.gz |
0/8 doesn't count as a /8 subnet towards an Exit flag
-rw-r--r-- | src/or/policies.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/policies.c b/src/or/policies.c index eb8b5fd46..3c060aeb7 100644 --- a/src/or/policies.c +++ b/src/or/policies.c @@ -883,7 +883,7 @@ exit_policy_is_general_exit_helper(smartlist_t *policy, int port) if (subnet_status[j] != 0) continue; /* We already reject some part of this /8 */ tor_addr_from_ipv4h(&addr, j<<24); - if (tor_addr_is_internal(&addr, 1)) /* 1 because * = 0.0.0.0 */ + if (tor_addr_is_internal(&addr, 0)) continue; /* Local or non-routable addresses */ if (tor_addr_compare_masked(&addr, &p->addr, p->maskbits, CMP_EXACT) == 0) { |