fix network errors not being reported anymore

This commit is contained in:
2026-08-03 15:37:53 -04:00
parent 4f2b9b40f3
commit 1a327b4aaf

View File

@@ -468,8 +468,6 @@ function attach_ws_events(ws){
delete msg.proxy.proxyDNS;
}
}
if(typeof msg.proxy.port == "string"){
@@ -477,8 +475,6 @@ function attach_ws_events(ws){
msg.proxy.port = parseInt(msg.proxy.port);
}
console.log(msg.proxy);
proxy_map[msg.id] = msg.proxy;
send(ws, seqid, {status: true});
return;
@@ -826,7 +822,7 @@ browser.webRequest.onHeadersReceived.addListener(
// send error on 4xx code
if(page.statusCode >= 400){
const proxy_config = proxy_map[details.cookieStoreId];
const proxy_config = proxy_map[page.cookieStoreId];
if(
proxy_config &&