diff options
author | Nick Mathewson <nickm@torproject.org> | 2011-03-06 13:16:53 -0500 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2011-03-06 13:16:53 -0500 |
commit | 8b01fd7badc893b849d4394a2b72d422eecf7913 (patch) | |
tree | 56768890bd1673f8efe553e7b9d4c4e46f933239 /src | |
parent | fb421c00052cfebda33c4d42346c7eeef30f865f (diff) | |
download | tor-8b01fd7badc893b849d4394a2b72d422eecf7913.tar.gz tor-8b01fd7badc893b849d4394a2b72d422eecf7913.zip |
exit_policy_is_general_exit is IPv4 only; it should admit it.
Diffstat (limited to 'src')
-rw-r--r-- | src/or/policies.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/or/policies.c b/src/or/policies.c index 0a8fd7328e..f8c36c784b 100644 --- a/src/or/policies.c +++ b/src/or/policies.c @@ -880,6 +880,8 @@ exit_policy_is_general_exit(smartlist_t *policy) for (i = 0; i < 3; ++i) { SMARTLIST_FOREACH(policy, addr_policy_t *, p, { + if (tor_addr_family(&p->addr) != AF_INET) + continue; /* IPv4 only for now */ if (p->prt_min > ports[i] || p->prt_max < ports[i]) continue; /* Doesn't cover our port. */ if (p->maskbits > 8) |