diff options
author | Nick Mathewson <nickm@torproject.org> | 2018-08-28 15:44:06 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2018-08-28 15:44:06 -0400 |
commit | 2bc4c55d7d17ba9d4dcfacd3f2b118e7144a146d (patch) | |
tree | e13c924935116bf25ad5fb5f259d2aca51140882 /src/core | |
parent | 82d758afa80724f4b8322e002d351c8e7923062a (diff) | |
parent | f282375fb7d9c527e4bff19dc1e8c6dc7627d137 (diff) | |
download | tor-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.c | 8 |
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; } |