[tor-commits] [tor/master] Add a "reject *:*" line after parsing in parse_reachable_addresses()
nickm at torproject.org
nickm at torproject.org
Tue Aug 28 19:44:19 UTC 2018
commit f80cfc44767e9f70cbb99c090579bb7cfbf8e996
Author: Neel Chauhan <neel at neelc.org>
Date: Fri Jul 20 21:38:28 2018 -0400
Add a "reject *:*" line after parsing in parse_reachable_addresses()
---
src/core/or/policies.c | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/src/core/or/policies.c b/src/core/or/policies.c
index e01415f95..7f5d5dd10 100644
--- a/src/core/or/policies.c
+++ b/src/core/or/policies.c
@@ -317,6 +317,14 @@ parse_reachable_addresses(void)
}
}
+ /* Prepend a reject *.* to reachable_(or|dir)_addr_policy */
+ if (!ret && (options->ReachableDirAddresses ||
+ options->ReachableORAddresses ||
+ options->ReachableAddresses)) {
+ append_exit_policy_string(&reachable_or_addr_policy, "reject *:*");
+ append_exit_policy_string(&reachable_dir_addr_policy, "reject *:*");
+ }
+
return ret;
}
More information about the tor-commits
mailing list