diff options
author | teor (Tim Wilson-Brown) <teor2345@gmail.com> | 2016-01-21 13:30:57 +1100 |
---|---|---|
committer | teor (Tim Wilson-Brown) <teor2345@gmail.com> | 2016-01-29 07:16:04 +1100 |
commit | 772577b547aa5e6b13b89f465acf656cd08f2917 (patch) | |
tree | 537a826591b4167b8e1029d515cd0262b55349a5 /src/or/policies.c | |
parent | e991d642ec14d41df9da70442d99861bdb5bfb5b (diff) | |
download | tor-772577b547aa5e6b13b89f465acf656cd08f2917.tar.gz tor-772577b547aa5e6b13b89f465acf656cd08f2917.zip |
Optimise reachability checks when iterating through relay lists
Skip address checks on servers.
Skip allowed-only address checks on non-bridge clients with IPv4.
Diffstat (limited to 'src/or/policies.c')
-rw-r--r-- | src/or/policies.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/or/policies.c b/src/or/policies.c index 506edec394..0dc4f96c8b 100644 --- a/src/or/policies.c +++ b/src/or/policies.c @@ -323,6 +323,8 @@ firewall_is_fascist_impl(void) /** Return true iff the firewall options, including ClientUseIPv4 0 and * ClientUseIPv6 0, might block any OR address:port combination. + * Address preferences may still change which address is selected even if + * this function returns false. */ int firewall_is_fascist_or(void) @@ -332,6 +334,8 @@ firewall_is_fascist_or(void) /** Return true iff the firewall options, including ClientUseIPv4 0 and * ClientUseIPv6 0, might block any Dir address:port combination. + * Address preferences may still change which address is selected even if + * this function returns false. */ int firewall_is_fascist_dir(void) |