From d54432287ae5f2f419b6f139cf0a9b0d01d2a92c Mon Sep 17 00:00:00 2001 From: Connor Peet Date: Wed, 29 May 2024 09:25:08 -0700 Subject: [PATCH] cli: fix inverted condition not showing warning correctly Fixes #211378 --- cli/src/commands/tunnels.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cli/src/commands/tunnels.rs b/cli/src/commands/tunnels.rs index f06cd9a1e2a2ef..bd64fe28eca429 100644 --- a/cli/src/commands/tunnels.rs +++ b/cli/src/commands/tunnels.rs @@ -556,7 +556,7 @@ async fn serve_with_csa( match acquire_singleton(&paths.tunnel_lockfile()).await { Ok(SingletonConnection::Client(stream)) => { debug!(log, "starting as client to singleton"); - if gateway_args.name.is_none() + if gateway_args.name.is_some() || !gateway_args.install_extension.is_empty() || gateway_args.tunnel.tunnel_id.is_some() {