Aggregate client nodes with sensitive failover and manual routing - #20
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
问题与结果
原有客户端配置按服务器分开生成,普通代理默认按协议顺序故障切换,无法同时实现敏感服务固定主备与跨服务器低延迟选线。本 PR 增加每设备一份汇总配置:敏感服务使用显式 Reality/CDN 主备,普通海外与未匹配流量自动测速;各业务组保留默认策略和共用手动选择入口。
改动
aggregate.py render/check --profile <aggregate-profile>,从显式选定的源 profile 重新生成节点;不依赖已有 YAML 或 iCloud 副本,不修改服务器。节点使用来源别名前缀,保持设备凭据隔离。验证
bash -n、git diff --check通过;推送前确认git ls-files profiles为空。发布与限制
此变更是客户端配置发布,不需要重新部署 VPS。合并后从 main 重新生成 routing-mac.yaml / routing-iphone.yaml,检查源一致性并同步到现有 Stash iCloud 分发目录。profiles、凭据、实际客户端 YAML 均不进入 Git 或 PR。
CF 备用保护本地到 GCP 的入口,目的站仍看到 GCP 出口;切换后 IP 会改变。HTTP 延迟探测不代表网站业务可用性或下载带宽。各业务组的“手动选择”共用一个选择器,变更影响所有已选择手动的业务组。输出沿用共享写入层的逐文件原子替换,不提供跨设备文件事务;磁盘写入失败后需重新 render/check。Stash GUI 导入/启用未验证(本机锁屏),配置文件分发不能等同于设备已启用;保留旧单服务器配置用于客户端回退。