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.