mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2025-02-24 22:58:50 +01:00
make it less noisy to consider exit policies
svn:r1349
This commit is contained in:
parent
a98579e0bc
commit
f2a692081f
1 changed files with 2 additions and 2 deletions
|
@ -472,7 +472,7 @@ int router_compare_addr_to_exit_policy(uint32_t addr, uint16_t port,
|
||||||
struct exit_policy_t *tmpe;
|
struct exit_policy_t *tmpe;
|
||||||
|
|
||||||
for(tmpe=policy; tmpe; tmpe=tmpe->next) {
|
for(tmpe=policy; tmpe; tmpe=tmpe->next) {
|
||||||
log_fn(LOG_DEBUG,"Considering exit policy %s", tmpe->string);
|
// log_fn(LOG_DEBUG,"Considering exit policy %s", tmpe->string);
|
||||||
maybe = 0;
|
maybe = 0;
|
||||||
if (!addr) {
|
if (!addr) {
|
||||||
/* Address is unknown. */
|
/* Address is unknown. */
|
||||||
|
@ -506,7 +506,7 @@ int router_compare_addr_to_exit_policy(uint32_t addr, uint16_t port,
|
||||||
}
|
}
|
||||||
if (match) {
|
if (match) {
|
||||||
in.s_addr = htonl(addr);
|
in.s_addr = htonl(addr);
|
||||||
log_fn(LOG_INFO,"Address %s:%d matches exit policy '%s'",
|
log_fn(LOG_DEBUG,"Address %s:%d matches exit policy '%s'",
|
||||||
inet_ntoa(in), port, tmpe->string);
|
inet_ntoa(in), port, tmpe->string);
|
||||||
if(tmpe->policy_type == EXIT_POLICY_ACCEPT) {
|
if(tmpe->policy_type == EXIT_POLICY_ACCEPT) {
|
||||||
/* If we already hit a clause that might trigger a 'reject', than we
|
/* If we already hit a clause that might trigger a 'reject', than we
|
||||||
|
|
Loading…
Add table
Reference in a new issue