fix: add NO_PROXY for domestic relay (bww.letcareme.com)
This commit is contained in:
parent
9ab71f49c2
commit
dea4a0e864
@ -269,9 +269,14 @@ function Render-SettingsTemplate {
|
|||||||
|
|
||||||
# ─── 代理自动检测 ────────────────────────────────────
|
# ─── 代理自动检测 ────────────────────────────────────
|
||||||
function Detect-SystemProxy {
|
function Detect-SystemProxy {
|
||||||
|
# 中转站在国内阿里云,不走代理
|
||||||
|
$env:NO_PROXY = "bww.letcareme.com,code.letcareme.com,letcareme.com,localhost,127.0.0.1"
|
||||||
|
$env:no_proxy = $env:NO_PROXY
|
||||||
|
|
||||||
# 如果已手动设置了 HTTPS_PROXY,直接使用
|
# 如果已手动设置了 HTTPS_PROXY,直接使用
|
||||||
if ($env:HTTPS_PROXY) {
|
if ($env:HTTPS_PROXY) {
|
||||||
Write-Host " [OK] 已设置 HTTPS_PROXY=$($env:HTTPS_PROXY)" -ForegroundColor Green
|
Write-Host " [OK] 已设置 HTTPS_PROXY=$($env:HTTPS_PROXY)" -ForegroundColor Green
|
||||||
|
Write-Host " [OK] NO_PROXY=$($env:NO_PROXY)" -ForegroundColor Green
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user