diff options
author | teor (Tim Wilson-Brown) <teor2345@gmail.com> | 2015-11-16 13:58:26 +1100 |
---|---|---|
committer | teor (Tim Wilson-Brown) <teor2345@gmail.com> | 2015-11-20 10:32:51 +1100 |
commit | c73c5a293f645c9d5a15b3f17946e4d44245a58e (patch) | |
tree | 75d11d66b26413f79baffebdb438ad5efc9f0e49 /src/test/test_policy.c | |
parent | 913fbf8f2f9eea36ccef6100608295d8c8ce449a (diff) | |
download | tor-c73c5a293f645c9d5a15b3f17946e4d44245a58e.tar.gz tor-c73c5a293f645c9d5a15b3f17946e4d44245a58e.zip |
Refactor policies_parse_exit_policy_internal
Move the code that rejects publicly routable exit relay addresses
to policies_parse_exit_policy_reject_private. Add
addr_policy_append_reject_addr_list and use it to reject interface
addresses.
This removes the duplicate reject checks on local_address and
ipv6_local_address, but duplicates will be removed by
exit_policy_remove_redundancies at the end of the function.
This also removes the info-level logging on rejected interface
addresses. Instead, log a debug-level message in
addr_policy_append_reject_addr.
This simplifies policies_parse_exit_policy_internal and prepares for
reporting these addresses over the control port in #17183.
Diffstat (limited to 'src/test/test_policy.c')
0 files changed, 0 insertions, 0 deletions