mirror of
https://github.com/mandatoryprogrammer/CursedChrome
synced 2026-06-08 15:39:30 +00:00
Potential fix for crash
This commit is contained in:
@@ -282,16 +282,15 @@ function getUserReqHandler(userRule, recorder) {
|
||||
var remote_port_key = req.socket.remotePort;
|
||||
var proxy_authentication_header = false;
|
||||
|
||||
// Automatically clean up the entry from the table once the
|
||||
// socket is properly terminated.
|
||||
req.socket.on('close', () => {
|
||||
delete global.proxyAuthPassthru[req.socket.remotePort];
|
||||
});
|
||||
|
||||
//console.log(`Source port for HTTPS connecting to us: ${req.socket.remotePort}`);
|
||||
|
||||
if(global.proxyAuthPassthru && remote_port_key in global.proxyAuthPassthru) {
|
||||
proxy_authentication_header = global.proxyAuthPassthru[remote_port_key]['proxy_authorization'];
|
||||
// Automatically clean up the entry from the table once the
|
||||
// socket is properly terminated.
|
||||
req.socket.on('close', () => {
|
||||
delete global.proxyAuthPassthru[remote_port_key];
|
||||
});
|
||||
}
|
||||
|
||||
if(proxy_authentication_header) {
|
||||
|
||||
Reference in New Issue
Block a user