部分请求增加User-Agent

This commit is contained in:
刘祥超
2022-01-10 10:02:15 +08:00
parent 2f02827cb7
commit 344de90bff

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)