From 8fafdca11ed032c34f2907a493523d38634c7eaf Mon Sep 17 00:00:00 2001 From: trinity-1686a Date: Sun, 12 Nov 2023 18:24:33 +0100 Subject: don't warn when ExitRelay is set to 0 --- src/feature/relay/relay_config.c | 4 ++-- 1 file 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."); -- cgit v1.2.3-54-g00ecf From 42742d55c725a236cfedd362ac37517742abcb5e Mon Sep 17 00:00:00 2001 From: trinity-1686a Date: Sun, 12 Nov 2023 18:36:12 +0100 Subject: add changes entry --- changes/bug40884 | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 changes/bug40884 diff --git a/changes/bug40884 b/changes/bug40884 new file mode 100644 index 0000000000..8f2af04fcb --- /dev/null +++ b/changes/bug40884 @@ -0,0 +1,3 @@ + o Minor bugfixes (bridge): + - Don't warn when BridgeRelay is 1 and ExitRelay is explicitly set to 0. + Fixes bug 40884; bugfix on 0.4.8.3-rc. -- cgit v1.2.3-54-g00ecf