Update InfoScan.go 指纹识别字段更新

指纹识别字段更新
This commit is contained in:
xaitx 2024-08-05 15:43:54 +08:00 committed by GitHub
parent e433c635dd
commit af9b77e725
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -19,7 +19,7 @@ func InfoCheck(Url string, CheckData *[]CheckDatas) []string {
for _, data := range *CheckData {
for _, rule := range info.RuleDatas {
if rule.Type == "code" {
if rule.Type == "code" || rule.Type == "body" {
matched, _ = regexp.MatchString(rule.Rule, string(data.Body))
} else {
matched, _ = regexp.MatchString(rule.Rule, data.Headers)