部分请求增加User-Agent

This commit is contained in:
GoEdgeLab
2022-01-10 10:02:15 +08:00
parent 2ad860b8cd
commit 6007267d98

View File

@@ -83,6 +83,8 @@ func (this *BlockAction) Perform(waf *WAF, group *RuleGroup, set *RuleSet, reque
logs.Error(err)
return false
}
req.Header.Set("User-Agent", teaconst.GlobalProductName+"/"+teaconst.Version)
resp, err := httpClient.Do(req)
if err != nil {
logs.Error(err)