Skip to content
Snippets Groups Projects
Verified Commit 8fafdca1 authored by trinity-1686a's avatar trinity-1686a
Browse files

don't warn when ExitRelay is set to 0

parent cec6f991
No related branches found
No related tags found
No related merge requests found
......@@ -1151,8 +1151,8 @@ options_validate_relay_mode(const or_options_t *old_options,
REJECT("BridgeRelay is 1, ORPort is not set. This is an invalid "
"combination.");
if (options->BridgeRelay == 1 && (options->ExitRelay == 1 ||
!policy_using_default_exit_options(options))) {
if (options->BridgeRelay == 1 && !(options->ExitRelay == 0 ||
policy_using_default_exit_options(options))) {
log_warn(LD_CONFIG, "BridgeRelay is 1, but ExitRelay is 1 or an "
"ExitPolicy is configured. Tor will start, but it will not "
"function as an exit relay.");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment