fix(proxy): update os-proxy-config patch to correct proxy URL handling (#5222)
* fix(proxy): update os-proxy-config patch to correct proxy URL handling - Modified the os-proxy-config dependency in package.json to apply a patch. - The patch updates the logic in getSystemProxy to correctly handle HTTP and SOCKS proxy settings. * use http instead of https for https proxy
This commit is contained in:
parent
8125fac309
commit
a84763def6
32
.yarn/patches/os-proxy-config-npm-1.1.1-af9c7574cc.patch
vendored
Normal file
32
.yarn/patches/os-proxy-config-npm-1.1.1-af9c7574cc.patch
vendored
Normal file
@ -0,0 +1,32 @@
|
|||||||
|
diff --git a/dist/index.js b/dist/index.js
|
||||||
|
index 663919ac5bb4f9147c5c1b09bd2e379586266a4b..88ff8873ac5beb5eb293f7e741a92fb15b00960c 100644
|
||||||
|
--- a/dist/index.js
|
||||||
|
+++ b/dist/index.js
|
||||||
|
@@ -20,21 +20,21 @@ function getSystemProxy() {
|
||||||
|
else if (process.platform === 'darwin') {
|
||||||
|
const proxySettings = yield mac_system_proxy_1.getMacSystemProxy();
|
||||||
|
const noProxy = proxySettings.ExceptionsList || [];
|
||||||
|
- if (proxySettings.HTTPSEnable && proxySettings.HTTPSProxy && proxySettings.HTTPSPort) {
|
||||||
|
+ if (proxySettings.HTTPEnable && proxySettings.HTTPProxy && proxySettings.HTTPPort) {
|
||||||
|
return {
|
||||||
|
- proxyUrl: `https://${proxySettings.HTTPSProxy}:${proxySettings.HTTPSPort}`,
|
||||||
|
+ proxyUrl: `http://${proxySettings.HTTPProxy}:${proxySettings.HTTPPort}`,
|
||||||
|
noProxy
|
||||||
|
};
|
||||||
|
}
|
||||||
|
- else if (proxySettings.HTTPEnable && proxySettings.HTTPProxy && proxySettings.HTTPPort) {
|
||||||
|
+ else if (proxySettings.SOCKSEnable && proxySettings.SOCKSProxy && proxySettings.SOCKSPort) {
|
||||||
|
return {
|
||||||
|
- proxyUrl: `http://${proxySettings.HTTPProxy}:${proxySettings.HTTPPort}`,
|
||||||
|
+ proxyUrl: `socks://${proxySettings.SOCKSProxy}:${proxySettings.SOCKSPort}`,
|
||||||
|
noProxy
|
||||||
|
};
|
||||||
|
}
|
||||||
|
- else if (proxySettings.SOCKSEnable && proxySettings.SOCKSProxy && proxySettings.SOCKSPort) {
|
||||||
|
+ else if (proxySettings.HTTPSEnable && proxySettings.HTTPSProxy && proxySettings.HTTPSPort) {
|
||||||
|
return {
|
||||||
|
- proxyUrl: `socks://${proxySettings.SOCKSProxy}:${proxySettings.SOCKSPort}`,
|
||||||
|
+ proxyUrl: `http://${proxySettings.HTTPSProxy}:${proxySettings.HTTPSPort}`,
|
||||||
|
noProxy
|
||||||
|
};
|
||||||
|
}
|
||||||
@ -98,7 +98,7 @@
|
|||||||
"markdown-it": "^14.1.0",
|
"markdown-it": "^14.1.0",
|
||||||
"node-stream-zip": "^1.15.0",
|
"node-stream-zip": "^1.15.0",
|
||||||
"officeparser": "^4.1.1",
|
"officeparser": "^4.1.1",
|
||||||
"os-proxy-config": "^1.1.1",
|
"os-proxy-config": "patch:os-proxy-config@npm%3A1.1.1#~/.yarn/patches/os-proxy-config-npm-1.1.1-af9c7574cc.patch",
|
||||||
"proxy-agent": "^6.5.0",
|
"proxy-agent": "^6.5.0",
|
||||||
"tar": "^7.4.3",
|
"tar": "^7.4.3",
|
||||||
"turndown": "^7.2.0",
|
"turndown": "^7.2.0",
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user