fix previous commit
This commit is contained in:
parent
d1c7f53d16
commit
dda48fc695
1 changed files with 2 additions and 7 deletions
9
main.js
9
main.js
|
@ -11,7 +11,8 @@ ipcMain.on('windowmaker', (event, arg) => {
|
|||
createWindow();
|
||||
})
|
||||
|
||||
|
||||
const proxy = createProxy(http.createServer());
|
||||
proxy.listen(3129)
|
||||
//Function to enable AD Blocking and extensions...
|
||||
let blocker = undefined
|
||||
let extensions = undefined
|
||||
|
@ -112,12 +113,6 @@ const regexPatterns = [
|
|||
return false;
|
||||
}
|
||||
|
||||
// set/create local proxy
|
||||
try {
|
||||
const proxy = createProxy(http.createServer());
|
||||
proxy.listen(3129)
|
||||
} catch {}
|
||||
|
||||
session.defaultSession.setProxy({
|
||||
proxyRules: 'http=localhost:3129;https=localhost:3129',
|
||||
proxyBypassRules: '<local>'
|
||||
|
|
Loading…
Reference in a new issue