WAF增加显示网页动作

This commit is contained in:
GoEdgeLab
2021-10-25 19:42:12 +08:00
parent d8943f3816
commit 40f0fca878
5 changed files with 55 additions and 4 deletions

View File

@@ -15,7 +15,7 @@ func (this *BaseAction) CloseConn(writer http.ResponseWriter) error {
hijack, ok := writer.(http.Hijacker)
if ok {
conn, _, err := hijack.Hijack()
if err == nil {
if err == nil && conn != nil {
return conn.Close()
}
}