优化代码

This commit is contained in:
GoEdgeLab
2022-01-09 10:53:21 +08:00
parent bcb4592549
commit 4cb51f3703
4 changed files with 26 additions and 1 deletions

View File

@@ -71,7 +71,7 @@ func (this *HTTPAPIAction) runAction(action string, listType IPListType, item *p
if err != nil {
return err
}
req.Header.Set("User-Agent", "GoEdge-Node/"+teaconst.Version)
req.Header.Set("User-Agent", teaconst.GlobalProductName+"-Node/"+teaconst.Version)
resp, err := httpAPIClient.Do(req)
if err != nil {
return err