pac-proxy-cli 1.1.9 → 1.1.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/server.js +2 -0
- package/package.json +1 -1
package/lib/server.js
CHANGED
|
@@ -34,6 +34,8 @@ async function applyProxyService(proxyOverride) {
|
|
|
34
34
|
const status = getSslocalStatus();
|
|
35
35
|
if (!status.running) await startSslocal(sslocalCfg);
|
|
36
36
|
proxy.upstream = `socks5://127.0.0.1:${sslocalCfg.localPort || 1080}`;
|
|
37
|
+
// 持久化 upstream,使 proxy-server 每次请求读取 getProxyConfig() 时拿到正确端口
|
|
38
|
+
setProxyConfig(proxy);
|
|
37
39
|
} catch (e) {
|
|
38
40
|
console.error('sslocal 启动失败:', e.message);
|
|
39
41
|
}
|