mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2025-02-25 07:07:52 +01:00
Fix: when BridgeRelay is set, you do not get any exit policy.
This commit is contained in:
parent
8126ffecb6
commit
6e2f8de62d
1 changed files with 5 additions and 6 deletions
|
@ -2118,12 +2118,11 @@ policies_parse_exit_policy_from_options(const or_options_t *or_options,
|
|||
parser_cfg |= EXIT_POLICY_REJECT_PRIVATE;
|
||||
}
|
||||
|
||||
if (!or_options->BridgeRelay && !or_options->ReducedExitPolicy) {
|
||||
parser_cfg |= EXIT_POLICY_ADD_DEFAULT;
|
||||
}
|
||||
|
||||
if (or_options->ReducedExitPolicy) {
|
||||
parser_cfg |= EXIT_POLICY_ADD_REDUCED;
|
||||
if (!or_options->BridgeRelay) {
|
||||
if (or_options->ReducedExitPolicy)
|
||||
parser_cfg |= EXIT_POLICY_ADD_REDUCED;
|
||||
else
|
||||
parser_cfg |= EXIT_POLICY_ADD_DEFAULT;
|
||||
}
|
||||
|
||||
if (or_options->ExitPolicyRejectLocalInterfaces) {
|
||||
|
|
Loading…
Add table
Reference in a new issue