summaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2018-08-28 15:44:06 -0400
committerNick Mathewson <nickm@torproject.org>2018-08-28 15:44:06 -0400
commit2bc4c55d7d17ba9d4dcfacd3f2b118e7144a146d (patch)
treee13c924935116bf25ad5fb5f259d2aca51140882 /src/core
parent82d758afa80724f4b8322e002d351c8e7923062a (diff)
parentf282375fb7d9c527e4bff19dc1e8c6dc7627d137 (diff)
downloadtor-2bc4c55d7d17ba9d4dcfacd3f2b118e7144a146d.tar.gz
tor-2bc4c55d7d17ba9d4dcfacd3f2b118e7144a146d.zip
Merge remote-tracking branch 'tor-github/pr/245'
Diffstat (limited to 'src/core')
-rw-r--r--src/core/or/policies.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/core/or/policies.c b/src/core/or/policies.c
index e01415f95e..7f5d5dd10f 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;
}