feat(domain): 支持通配符域名及关联功能适配 (#63)

* feat(domain): 支持通配符域名及关联功能适配

* fix(domain): preserve legacy Unicode imports and address review findings

* fix(domain): canonicalize legacy IDNs and exclude empty host labels

* fix(domain): normalize equivalent Unicode IDN spellings

---------

Co-authored-by: Ryan <63696351+Rain-kl@users.noreply.github.com>
Co-authored-by: ryan <ryan@arctel.net>
This commit is contained in:
Deqiying
2026-11-09 10:31:03 +08:00
committed by GitHub
parent 8d8b3e1ea8
commit 9a51a68206
37 changed files with 1614 additions and 113 deletions
+3 -1
View File
@@ -161,8 +161,9 @@ func DeleteHandler(c *gin.Context) {
c.JSON(http.StatusOK, response.OKNil())
}
// CreateDomainHandler creates an explicit FQDN under a Zone.
// CreateDomainHandler creates an exact or wildcard FQDN under a Zone.
// @Summary 创建 Zone 域名
// @Description 支持具体域名或最左侧完整标签为 * 的通配符域名,例如 *.s3.example.com;域名必须属于当前 Zone。
// @Tags openflare-zone
// @Accept json
// @Produce json
@@ -192,6 +193,7 @@ func CreateDomainHandler(c *gin.Context) {
// UpdateDomainHandler updates a Zone domain.
// @Summary 更新 Zone 域名
// @Description 支持具体域名与通配符域名互相修改;通配符仅允许出现在最左侧完整标签,且域名必须属于当前 Zone。
// @Tags openflare-zone
// @Accept json
// @Produce json