fix: use 'auto' as default protocol for quick tunnels

Quick tunnel was hardcoding 'quic' as the default protocol when no
--protocol flag was specified, ignoring the documented default of 'auto'.

The Cloudflare docs state that 'auto' is the default:
https://developers.cloudflare.com/cloudflare-one/networks/connectors/cloudflare-tunnel/configure-tunnels/run-parameters/#protocol

This caused quick tunnels to always use QUIC even in environments where
HTTP/2 would be preferable or where QUIC is blocked.

Fixes #1609.
This commit is contained in:
Julio César Suástegui 2026-04-03 03:25:05 -06:00
parent d2a87e9b93
commit c049979585
1 changed files with 1 additions and 1 deletions

View File

@ -84,7 +84,7 @@ func RunQuickTunnel(sc *subcommandContext) error {
}
if !sc.c.IsSet(flags.Protocol) {
_ = sc.c.Set(flags.Protocol, "quic")
_ = sc.c.Set(flags.Protocol, "auto")
}
// Override the number of connections used. Quick tunnels shouldn't be used for production usage,