diff options
author | Nick Mathewson <nickm@torproject.org> | 2013-03-11 23:37:47 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2013-03-11 23:37:47 -0400 |
commit | 2b22c0aeef6e71d56b12411d10484aaece769178 (patch) | |
tree | 3d27f93cbd2c98f472c42becb6dfa5e86005ac89 /src/or/policies.h | |
parent | 051b1e8ac4114fb23904cdf8dead72d585904e0a (diff) | |
download | tor-2b22c0aeef6e71d56b12411d10484aaece769178.tar.gz tor-2b22c0aeef6e71d56b12411d10484aaece769178.zip |
On END_REASON_EXITPOLICY, mark circuit as unusable for that address.
Also, don't call the exit node 'reject *' unless our decision to pick
that node was based on a non-summarized version of that node's exit
policy.
rransom and arma came up with the ideas for this fix.
Fix for 7582; the summary-related part is a bugfix on 0.2.3.2-alpha.
Diffstat (limited to 'src/or/policies.h')
-rw-r--r-- | src/or/policies.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/or/policies.h b/src/or/policies.h index da375c4425..c0e7a9efce 100644 --- a/src/or/policies.h +++ b/src/or/policies.h @@ -47,6 +47,8 @@ int policies_parse_exit_policy(config_line_t *cfg, smartlist_t **dest, int rejectprivate, const char *local_address, int add_default_policy); void policies_exit_policy_append_reject_star(smartlist_t **dest); +void addr_policy_append_reject_addr(smartlist_t **dest, + const tor_addr_t *addr); void policies_set_node_exitpolicy_to_reject_all(node_t *exitrouter); int exit_policy_is_general_exit(smartlist_t *policy); int policy_is_reject_star(const smartlist_t *policy, sa_family_t family); |