0
0
mirror of https://gitlab.torproject.org/tpo/core/tor.git synced 2024-09-20 04:12:13 +02:00

don't warn when ExitRelay is set to 0

This commit is contained in:
trinity-1686a 2023-11-12 18:24:33 +01:00
parent cec6f9919d
commit 8fafdca11e
No known key found for this signature in database
GPG Key ID: 7F9D324B2661C978

View File

@ -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.");