Repository navigation
feat: HTTP 隧道支持最多三层泛域名与域名占用隔离 - #90
Merged
Merged
Conversation
zsio
marked this pull request as ready for review
September 10, 2026 03:22
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
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.
HTTP 隧道原先只接受单个完整域名,无法将一组子域名转发到同一隧道。本 PR 实现 #83 的泛域名需求。
支持
*.x.com、*.a.b.com、*.*.x.com和*.*.*.x.com:最多三个连续前导*,每个只匹配一个非空标签。精确域名优先,其次选择固定后缀最长的泛域名;向目标服务保留实际请求的 Host 和 X-Forwarded-Host。域名占用在 SQLite 保存事务中统一检查:相同规范化规则全局唯一,同一用户允许重叠覆盖,不同用户禁止规则交集。暂停、离线、出错及重启保留占用;选中的具体隧道不可用、鉴权被拒绝或代理失败时不会回退到更宽规则。成功删除或修改域名才释放相应占用。配置的管理地址和内部控制/数据通道保持优先。
新增 21 组后端测试,覆盖:
同步中英文表单说明和
docs/http-wildcard-domains.md。DNS 配置及 HTTPS 证书签发不在本次功能范围内。验证已完成:最新提交
979a28d的 CI #426 全部通过,包括前端 lint/构建/测试、Go vet/全量测试/竞态检测、golangci-lint、govulncheck、Nginx/Caddy 系统测试、Playwright、跨版本连接冒烟测试和三种 Linux 架构构建。完整竞态运行触及原有服务端包 20 分钟时限,因此将
make test-race的包级超时调整为 25 分钟,保留全部测试和竞态检查。最终服务端包竞态测试通过,用时 1237.582 秒(约 20 分 38 秒)。本地git diff --check通过,工作区与分支提交一致。Refs #83