fix
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user