修复代码审查建议 · SV节点验证条件对齐 · deploy密钥分组
Agent-Logs-Url: https://github.com/qinfendebingshuo/guanghulab/sessions/4e027d8c-e244-4c46-91a9-74988f060a38 Co-authored-by: qinfendebingshuo <207279273+qinfendebingshuo@users.noreply.github.com>
This commit is contained in:
parent
a5beab2837
commit
2d13119a92
|
|
@ -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"
|
||||
|
|
|
|||
|
|
@ -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
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in New Issue