This commit is contained in:
2025-07-28 22:39:09 +08:00
parent 7e15c8aa39
commit 014a2b579e

View File

@@ -51,7 +51,7 @@ func (m *DomainAuthMiddleware) Handle(domain string) gin.HandlerFunc {
if idx := strings.Index(host, ":"); idx != -1 {
host = host[:idx]
}
m.logger.Info("域名认证中间件检查", zap.String("host", host), zap.String("domain", domain))
if host == domain {
// 设置域名匹配标记
c.Set("domainMatched", domain)