From aa24338225866b6dfe6cf947db2f669f5d770719 Mon Sep 17 00:00:00 2001 From: Nuno Diegues Date: Thu, 29 Jul 2021 00:07:35 +0100 Subject: [PATCH] TUN-4832: Prevent tunnel from running accidentally when only proxy-dns should run --- cmd/cloudflared/tunnel/cmd.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/cloudflared/tunnel/cmd.go b/cmd/cloudflared/tunnel/cmd.go index c98d5ae4..b7221a59 100644 --- a/cmd/cloudflared/tunnel/cmd.go +++ b/cmd/cloudflared/tunnel/cmd.go @@ -165,7 +165,7 @@ func TunnelCommand(c *cli.Context) error { // Unauthenticated named tunnel on ..com // For now, default to legacy setup unless quick-service is specified - if c.String("hostname") == "" && c.String("quick-service") != "" { + if !dnsProxyStandAlone(c, nil) && c.String("hostname") == "" && c.String("quick-service") != "" { return RunQuickTunnel(sc) }