[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [tor/master] Add a "reject *:*" line after parsing in parse_reachable_addresses()
commit f80cfc44767e9f70cbb99c090579bb7cfbf8e996
Author: Neel Chauhan <neel@xxxxxxxxx>
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;
}
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits