Skip to content

Commit bd917d2

Browse files
committed
TUN-7097: Fix bug checking proxy-dns config on tunnel cmd execution
1 parent 4616e9f commit bd917d2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmd/cloudflared/tunnel/cmd.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ func TunnelCommand(c *cli.Context) error {
195195
return runClassicTunnel(sc)
196196
}
197197

198-
if c.String("proxy-dns") != "" {
198+
if c.IsSet("proxy-dns") {
199199
// NamedTunnelProperties are nil since proxy dns server does not need it.
200200
// This is supported for legacy reasons: dns proxy server is not a tunnel and ideally should
201201
// not run as part of cloudflared tunnel.

0 commit comments

Comments
 (0)