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

This commit is contained in:
go0p
2025-03-02 15:31:20 +08:00
parent 74c5d4ae2b
commit 70c33af717
+3 -2
View File
@@ -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: []
};