找不到匹配的域名时自动记录日志、默认防cc攻击

This commit is contained in:
刘祥超
2022-06-22 20:04:33 +08:00
parent c5a635d796
commit f8e155887f
3 changed files with 95 additions and 45 deletions

View File

@@ -233,6 +233,12 @@ func (this *HTTPRequest) Do() {
// 开始调用
func (this *HTTPRequest) doBegin() {
// 是否找不到域名匹配
if this.ReqServer.Id == 0 {
this.doMismatch()
return
}
if !this.isLnRequest {
// 处理request limit
if this.web.RequestLimit != nil &&