Skip to content

Commit

Permalink
feat: Disable QUIC (#545)
Browse files Browse the repository at this point in the history
  • Loading branch information
ultragtx authored Sep 17, 2023
1 parent 474c058 commit 525c3b1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/background.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down

1 comment on commit 525c3b1

@vercel
Copy link

@vercel vercel bot commented on 525c3b1 Sep 17, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

chatall – ./

chatall-git-main-sunner.vercel.app
chatall-llm.vercel.app
chatall-sunner.vercel.app

Please sign in to comment.