From 525c3b1d58c238ada61f08f715b78b0073124189 Mon Sep 17 00:00:00 2001 From: ultragtx Date: Sun, 17 Sep 2023 21:44:24 +0800 Subject: [PATCH] feat: Disable QUIC (#545) --- src/background.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/background.js b/src/background.js index b64a70cbbc..a9ac1cb3b7 100644 --- a/src/background.js +++ b/src/background.js @@ -11,6 +11,10 @@ const isDevelopment = process.env.NODE_ENV !== "production"; const DEFAULT_USER_AGENT = ""; // Empty string to use the Electron default let mainWindow = null; +// Disable QUIC +// Prevent Cloudflare from detecting the real IP when using a proxy that bypasses UDP traffic +app.commandLine.appendSwitch("disable-quic"); + const userDataPath = app.getPath("userData"); const proxySettingPath = path.join(userDataPath, "proxySetting.json"); const defaultProxySetting = {