diff options
Diffstat (limited to 'src/or/policies.c')
-rw-r--r-- | src/or/policies.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/or/policies.c b/src/or/policies.c index 179230b88a..2c24555e9e 100644 --- a/src/or/policies.c +++ b/src/or/policies.c @@ -408,13 +408,12 @@ fascist_firewall_allows_address(const tor_addr_t *addr, if (tor_addr_family(addr) == AF_INET && (!options->ClientUseIPv4 || (pref_only && pref_ipv6))) return 0; - - /* Bridges can always use IPv6 */ - if (tor_addr_family(addr) == AF_INET6 && - (!fascist_firewall_use_ipv6(options) || (pref_only && !pref_ipv6))) - return 0; } + if (tor_addr_family(addr) == AF_INET6 && + (!fascist_firewall_use_ipv6(options) || (pref_only && !pref_ipv6))) + return 0; + return addr_policy_permits_tor_addr(addr, port, firewall_policy); } |