From 34c94d20f7066c94e48b8f5f95b146d05cd9e81d Mon Sep 17 00:00:00 2001 From: evanpelle Date: Sat, 20 Sep 2025 17:07:45 -0700 Subject: [PATCH] Use http/2 instead of QUIC for cf tunnels (#2075) ## Description: The cf tunnel drops all connections once every week lately. Using http/2 instead of QUIC will hopefully make it more stable. Also increase retry count and disable auto update. ## Please complete the following: - [x] I have added screenshots for all UI updates - [x] I process any text displayed to the user through translateText() and I've added it to the en.json file - [x] I have added relevant tests to the test directory - [x] I confirm I have thoroughly tested these changes and take full responsibility for any bugs introduced ## Please put your Discord username so you can be contacted if a bug or regression is found: evan --- src/server/Cloudflare.ts | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/src/server/Cloudflare.ts b/src/server/Cloudflare.ts index 758706937..a9bc132e4 100644 --- a/src/server/Cloudflare.ts +++ b/src/server/Cloudflare.ts @@ -237,7 +237,20 @@ export class Cloudflare { public async startCloudflared() { const cloudflared = spawn( "cloudflared", - ["tunnel", "--config", this.configPath, "--loglevel", "error", "run"], + [ + "tunnel", + "--config", + this.configPath, + "--loglevel", + "error", + "--protocol", + "http2", + "--retries", + "15", + "--no-autoupdate", + "run", + ], + { detached: true, stdio: ["ignore", "pipe", "pipe"],