fix chrome doesn't give a damn about proxy on localhost

This commit is contained in:
go0p
2026-08-06 15:11:35 +08:00
committed by go0p
parent 9dd9d37460
commit 312dd60320
+3 -2
View File
@@ -32,7 +32,7 @@ async function handleSetProxyConfig(config, sendResponse) {
host: config.host, host: config.host,
port: parseInt(config.port) 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, host: proxy.host,
port: proxy.port, port: proxy.port,
enabled: true, enabled: true,
bypassList: ["localhost", "127.0.0.1"], // https://bugs.chromium.org/p/chromium/issues/detail?id=899126#c17
bypassList: ["<-loopback>"],
matchList: [] matchList: []
}; };