From bd917d294cb1a48bb00b2e48aad4972cc32fd4df Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Oliveirinha?= Date: Sun, 22 Jan 2023 16:59:09 +0000 Subject: [PATCH] TUN-7097: Fix bug checking proxy-dns config on tunnel cmd execution --- 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 95cd98f9..8c762381 100644 --- a/cmd/cloudflared/tunnel/cmd.go +++ b/cmd/cloudflared/tunnel/cmd.go @@ -195,7 +195,7 @@ func TunnelCommand(c *cli.Context) error { return runClassicTunnel(sc) } - if c.String("proxy-dns") != "" { + if c.IsSet("proxy-dns") { // NamedTunnelProperties are nil since proxy dns server does not need it. // This is supported for legacy reasons: dns proxy server is not a tunnel and ideally should // not run as part of cloudflared tunnel.