Skip to content

Commit 8cbf79c

Browse files
committed
feat: support bypass_local addr
1 parent 40d145e commit 8cbf79c

File tree

3 files changed

+47
-10
lines changed

3 files changed

+47
-10
lines changed

packages/core/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"test": "mocha"
1717
},
1818
"dependencies": {
19-
"@starknt/sysproxy": "^0.0.2",
19+
"@starknt/sysproxy": "^0.0.3",
2020
"@vscode/sudo-prompt": "^9.3.1",
2121
"fix-path": "^3.0.0",
2222
"iconv-lite": "^0.6.3",

packages/core/src/shell/scripts/set-system-proxy/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ const executor = {
203203
const excludeIpStr = getProxyExcludeIpStr(';')
204204
// 设置代理,同时设置排除域名
205205
try {
206-
require('@starknt/sysproxy').triggerManualProxyByUrl(true, proxyAddr, excludeIpStr)
206+
require('@starknt/sysproxy').triggerManualProxyByUrl(true, proxyAddr, excludeIpStr, true)
207207
log.info(`设置windows系统代理成功: ${proxyAddr} ......(省略排除IP列表)`)
208208
} catch (e1) {
209209
log.warn('设置windows系统代理失败:执行 `@starknt/sysproxy` 失败,现尝试通过执行 `sysproxy.exe global ...` 来设置系统代理!\r\n捕获的异常:', e1)

pnpm-lock.yaml

Lines changed: 45 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)