Only create proxy once

This commit is contained in:
Sam Sneed 2024-08-13 17:32:05 -05:00
parent 981d139755
commit d1c7f53d16

View file

@ -113,8 +113,10 @@ const regexPatterns = [
} }
// set/create local proxy // set/create local proxy
const proxy = createProxy(http.createServer()); try {
proxy.listen(3129) const proxy = createProxy(http.createServer());
proxy.listen(3129)
} catch {}
session.defaultSession.setProxy({ session.defaultSession.setProxy({
proxyRules: 'http=localhost:3129;https=localhost:3129', proxyRules: 'http=localhost:3129;https=localhost:3129',