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.
新增功能 (New Features)
内置管理面板 (Admin Dashboard),需绑定 KV 命名空间,变量名称填写KV。
新增 getAdminPage 函数,提供了一个可视化的配置管理界面。
路由支持:增加了 /${uuid}/admin 访问入口,以及配套的 /get (读取配置) 和 /save (保存配置) 接口。
功能:
在线修改优选 IP 列表 (cfip)。
在线管理优选 IP 的 API 接口 (cfip_api)。
配置 Cloudflare CDN 代理模式(ProxyIP / SOCKS5 / HTTP)。
KV 存储集成 (Cloudflare KV Integration)
实现了从 Cloudflare KV 读取配置的功能,支持持久化保存管理面板的修改。
内存缓存优化:增加了 last_save_time 逻辑,实现了 60 秒的内存缓存,减少对 KV 的读取频率,提高性能。
动态优选 IP (Dynamic IP via API)
在生成订阅链接时,新增了从外部 API (cfip_api) 动态获取优选 IP 的逻辑。
加入了 AbortController,为 API 请求设置了 2 秒超时,防止拖慢订阅生成速度。
支持合并静态 IP 和动态 API 获取的 IP。
⚡ 逻辑改进 (Logic Improvements)
端口随机化 (Random Port Selection)
旧版:默认使用 443 端口。
新版:如果 IP 未指定端口,会自动从 [443, 2053, 2083, 2087, 2096, 8443] 中随机选择一个,提高了节点的可用性和抗封锁能力。
节点命名优化 (Node Naming)
旧版:强制添加 -ss 后缀。
新版:简化了命名逻辑,直接使用备注(如有)或 Host/IP,去除了多余的后缀。
缓存控制 (Cache Control)
在订阅响应头中新增了 Pragma: no-cache 和 Expires: 0,确保客户端获取到的总是最新的节点列表。
🔧 配置调整 (Configuration Changes)
默认代理 IP:将默认 proxyIP 从 210.61.97.241:81 修改为 proxyip.cmliussss.net。