diff --git a/main.js b/main.js index 0d3ca98..bd1d077 100644 --- a/main.js +++ b/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: ''