因WAF规则拦截而关闭连接时,不记录499

This commit is contained in:
GoEdgeLab
2021-12-01 20:55:19 +08:00
parent 28958b379d
commit 0d68a4c068
8 changed files with 120 additions and 27 deletions

View File

@@ -11,12 +11,10 @@ func isClientConnClosed(conn net.Conn) bool {
if conn == nil {
return true
}
clientConn, ok := conn.(*ClientConn)
clientConn, ok := conn.(ClientConnCloser)
if ok {
return clientConn.IsClosed()
}
// TODO 解决tls.Conn无法获取底层连接对象的问题
return false
return true
}