1
0
mirror of https://github.com/Ylianst/MeshAgent synced 2025-12-15 15:53:55 +00:00

1. Updated global-tunnel to always use the object cached by the module loader, fixing a bug where the native and JS instances didn't match

2. Updated proxy-helper to always end a global-tunnel before fetching the auto-proxy script, fixing a bug where auto-proxy couldn't be fetched correctly after autoproxy was configured
This commit is contained in:
Bryan Roe
2022-09-21 00:58:21 -07:00
parent 59efd7ab18
commit b21c7c380e
3 changed files with 18 additions and 4 deletions

View File

@@ -582,6 +582,10 @@ function windows_getProxy()
function auto_proxy_helper(target)
{
// The first thing we need to do, is disable any existing proxy settings, otherwise we won't be able to find the autoconfig script
require('global-tunnel').end();
var promise = require('promise');
var ret = new promise(promise.defaultInit);