Repository navigation
Let cloudflared choose the tunnel transport - #3
Merged
Merged
Conversation
Pinning the Quick Tunnel to HTTP/2 breaks networks that allow Cloudflare's QUIC transport but block TCP port 7844. Use cloudflared's default auto selection so it can prefer QUIC and fall back to HTTP/2 when needed.
Owner
|
Thanks. It makes sense. I added http2 to avoid waiting too much time because my network didn't work well with quic. It's time to switch to auto mode. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Cloudflare Quick Tunnel startup currently pins
cloudflaredto HTTP/2. On networks that allow Cloudflare's QUIC transport but block TCP port 7844, the tunnel hostname is created but no edge connection can register, so the CLI fails after its 30 second startup timeout.This changes the Cloudflare provider to use
cloudflared's default transport selection instead of forcing HTTP/2. The default auto mode prefers QUIC and can fall back to HTTP/2 when needed.Verification
cargo test --locked -- --test-threads=1cargo fmt --all -- --checkcargo clippy --locked --all-targets -- -D warningsAll 143 unit and integration tests pass.
Reproduction
With the current code,
cloudflaredreceives:On a network with
TCP/7844blocked andUDP/QUIC 7844available:TLS handshake with edge error: EOFWithout the hardcoded protocol, the same network immediately registers the tunnel over QUIC.