unjs / untun

🚇 Tunnel your local HTTP(s) server to the world! powered by Cloudflare Quick Tunnels.
Other
946 stars 14 forks source link

Ability to pass "--protocol http2" to cloudflared #38

Open lephuongbg opened 3 months ago

lephuongbg commented 3 months ago

Describe the feature

The default quic protocol that cloudflared uses doesn't work reliably.

As a workaround, we usually pass --protocol http2 to cloudflared to instruct it to use http2 for tunneling instead.

Would be great if we can do the same thing with untun CLI. It's a great wrapper and simplify thing a lot comparing to using cloudflared manually.

Additional information