增强客户端IP白名单认证功能

This commit is contained in:
yisier
2025-12-06 00:31:32 +08:00
parent 103b96eb19
commit b4362a68fc
17 changed files with 147 additions and 70 deletions
+2 -2
View File
@@ -159,14 +159,14 @@ func (https *HttpsServer) cert(host *file.Host, c net.Conn, rb []byte, certFileU
}
https.httpsListenerMap.Delete(value)
https.hostIdCertMap.Delete(key)
logs.Info("Listener 已释放")
logs.Debug("Listener 已释放")
}
}
}
return true
})
logs.Info("当前 Listener 连接数量", i)
logs.Debug("当前 Listener 连接数量", i)
if cert, ok := https.hostIdCertMap.Load(host.Id); ok {
if cert == certFileUrl {