mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-28 14:23:30 +01:00
Fix: when BridgeRelay is set, you do not get any exit policy.
This commit is contained in:
parent
8126ffecb6
commit
6e2f8de62d
@ -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…
Reference in New Issue
Block a user