将IP加入黑名单时,同时也会关闭此IP相关的连接

This commit is contained in:
刘祥超
2022-09-02 15:20:58 +08:00
parent af4cd05df2
commit 3cb69f4c71
11 changed files with 280 additions and 50 deletions

View File

@@ -372,6 +372,8 @@ func (this *HTTPRequest) WAFServerId() int64 {
// WAFClose 关闭连接
func (this *HTTPRequest) WAFClose() {
this.Close()
// 这里不要强关IP所有连接避免因为单个服务而影响所有
}
func (this *HTTPRequest) WAFOnAction(action interface{}) (goNext bool) {