From 2d13119a92b558c69832143d1003e3f1790327a6 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Tue, 7 Apr 2026 23:39:56 +0000 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E4=BB=A3=E7=A0=81=E5=AE=A1?= =?UTF-8?q?=E6=9F=A5=E5=BB=BA=E8=AE=AE=20=C2=B7=20SV=E8=8A=82=E7=82=B9?= =?UTF-8?q?=E9=AA=8C=E8=AF=81=E6=9D=A1=E4=BB=B6=E5=AF=B9=E9=BD=90=20=C2=B7?= =?UTF-8?q?=20deploy=E5=AF=86=E9=92=A5=E5=88=86=E7=BB=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Agent-Logs-Url: https://github.com/qinfendebingshuo/guanghulab/sessions/4e027d8c-e244-4c46-91a9-74988f060a38 Co-authored-by: qinfendebingshuo <207279273+qinfendebingshuo@users.noreply.github.com> --- server/proxy/deploy-brain-proxy.sh | 12 +++--------- server/proxy/service/subscription-server-v3.js | 4 ++-- 2 files changed, 5 insertions(+), 11 deletions(-) diff --git a/server/proxy/deploy-brain-proxy.sh b/server/proxy/deploy-brain-proxy.sh index 9727aa0f..0b3e507a 100644 --- a/server/proxy/deploy-brain-proxy.sh +++ b/server/proxy/deploy-brain-proxy.sh @@ -177,19 +177,13 @@ EOF # 保存硅谷服务器节点信息 (Claude专线 · 美国IP出口) # D61: 冰朔已配置硅谷服务器,新增Claude单独访问VPN节点 - if [ -n "${ZY_SVR_SV_HOST:-}" ]; then + if [ -n "${ZY_SVR_SV_HOST:-}" ] && [ -n "${ZY_SVR_SV_REALITY_PUBLIC_KEY:-}" ]; then echo "" >> "$KEYS_FILE" echo "# 硅谷服务器节点 (ZY-SVR-SV · Claude专线 · 美国IP出口)" >> "$KEYS_FILE" echo "ZY_SVR_SV_HOST=${ZY_SVR_SV_HOST}" >> "$KEYS_FILE" - fi - if [ -n "${ZY_SVR_SV_REALITY_PUBLIC_KEY:-}" ]; then echo "ZY_SVR_SV_REALITY_PUBLIC_KEY=${ZY_SVR_SV_REALITY_PUBLIC_KEY}" >> "$KEYS_FILE" - fi - if [ -n "${ZY_SVR_SV_REALITY_SHORT_ID:-}" ]; then - echo "ZY_SVR_SV_REALITY_SHORT_ID=${ZY_SVR_SV_REALITY_SHORT_ID}" >> "$KEYS_FILE" - fi - if [ -n "${ZY_SVR_SV_PORT:-}" ]; then - echo "ZY_SVR_SV_PORT=${ZY_SVR_SV_PORT}" >> "$KEYS_FILE" + echo "ZY_SVR_SV_REALITY_SHORT_ID=${ZY_SVR_SV_REALITY_SHORT_ID:-}" >> "$KEYS_FILE" + echo "ZY_SVR_SV_PORT=${ZY_SVR_SV_PORT:-443}" >> "$KEYS_FILE" fi chmod 600 "$KEYS_FILE" diff --git a/server/proxy/service/subscription-server-v3.js b/server/proxy/service/subscription-server-v3.js index b130c26d..4c6992b1 100644 --- a/server/proxy/service/subscription-server-v3.js +++ b/server/proxy/service/subscription-server-v3.js @@ -199,14 +199,14 @@ function buildStaticNodes() { const svPbk = getEnvOrKey('ZY_SVR_SV_REALITY_PUBLIC_KEY'); const svSid = getEnvOrKey('ZY_SVR_SV_REALITY_SHORT_ID'); const svPort = parseInt(getEnvOrKey('ZY_SVR_SV_PORT') || '443', 10); - if (svHost && svPbk && svSid) { + if (svHost && svPbk) { nodes.push({ id: 'zy-sv-claude', name: '🇺🇸 光湖-SV(Claude专线)', host: svHost, port: svPort, pbk: svPbk, - sid: svSid, + sid: svSid || '', region: 'us-sv', priority: 4 });