diff options
author | trinity-1686a <trinity@deuxfleurs.fr> | 2023-11-12 18:24:33 +0100 |
---|---|---|
committer | trinity-1686a <trinity@deuxfleurs.fr> | 2023-11-12 18:24:33 +0100 |
commit | 8fafdca11ed032c34f2907a493523d38634c7eaf (patch) | |
tree | 4cc5de955c74f6045ff331f311be055815eeb15c /src | |
parent | cec6f9919d3128646d85c75d08338bea4b31bffa (diff) | |
download | tor-8fafdca11ed032c34f2907a493523d38634c7eaf.tar.gz tor-8fafdca11ed032c34f2907a493523d38634c7eaf.zip |
don't warn when ExitRelay is set to 0
Diffstat (limited to 'src')
-rw-r--r-- | src/feature/relay/relay_config.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/feature/relay/relay_config.c b/src/feature/relay/relay_config.c index 0b02461318..320ce8d13a 100644 --- a/src/feature/relay/relay_config.c +++ b/src/feature/relay/relay_config.c @@ -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."); |