Skip to content

Sub2API Plus 0.2.4

Choose a tag to compare

@github-actions github-actions released this 17 Aug 20:08
· 773 commits to main since this release

Technical preview / 技术预览: 当前 0.2.x 仅用于开发、兼容性测试和隔离验收,未完成生产级安全、压力、容灾和回滚验证。请勿直接接入生产业务、真实付费用户、不可替代数据或高价值凭据。完整说明见 DISCLAIMER.md。本提示不对 LGPL-3.0-or-later 增加许可限制。

更新日志 / Changelog

  • 修复正式 CI 在 golangci-lint v2.9 下发现的未使用函数、无效赋值、未检查类型断言和静态检查问题,保持 WebSocket 429 守护、会话租约和错误切换语义不变。
  • 清理不再使用的状态容量兼容 helper,并为状态存储测试补齐类型断言检查,避免测试 panic 被误判为运行时成功。
  • 重新验证 OpenAI WebSocket ingress/v2、HTTP bridge、额度/调度状态存储和安全审计路径;本地 Go 测试与同版本 golangci-lint 均通过。

验证结果:internal/serviceinternal/securityaudit 测试通过,golangci-lint v2.9 全仓 0 issuesgofmtgit diff --check 通过。v0.2.3 标签曾因 CI 外部 schema 超时及随后暴露的 lint 问题未生成 Release;本版本使用新标签发布,不重写历史标签。


📥 Installation

Docker:

# GitHub Container Registry
docker pull ghcr.io/zcj-ui/sub2api-plus:0.2.4

One-line install (Linux):

curl -sSL https://raw.githubusercontent.com/zcj-ui/sub2api-plus/main/deploy/install.sh | sudo bash

Manual download:
Download the appropriate archive for your platform from the assets below.

📚 Documentation