TUN-7097: Fix bug checking proxy-dns config on tunnel cmd execution

This commit is contained in:
João Oliveirinha 2023-01-22 16:59:09 +00:00
parent 4616e9fcc2
commit bd917d294c
1 changed files with 1 additions and 1 deletions

View File

@ -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.