From 312dd60320bca44b45eb78dc099f25bbaa22a709 Mon Sep 17 00:00:00 2001 From: go0p Date: Mon, 24 Feb 2025 11:57:37 +0800 Subject: [PATCH] fix chrome doesn't give a damn about proxy on localhost --- public/proxy.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/public/proxy.js b/public/proxy.js index 4a53572..fa611b9 100644 --- a/public/proxy.js +++ b/public/proxy.js @@ -32,7 +32,7 @@ async function handleSetProxyConfig(config, sendResponse) { host: config.host, port: parseInt(config.port) }, - bypassList: config.bypassList || ["localhost", "127.0.0.1"] + bypassList: config.bypassList || [] } }; @@ -321,7 +321,8 @@ async function checkAndSetInitialProxy() { host: proxy.host, port: proxy.port, enabled: true, - bypassList: ["localhost", "127.0.0.1"], + // https://bugs.chromium.org/p/chromium/issues/detail?id=899126#c17 + bypassList: ["<-loopback>"], matchList: [] };