chore: modify ua

This commit is contained in:
xishang0128
2023-11-12 02:44:55 +08:00
parent 288c0c27d6
commit daa332e7b0
5 changed files with 9 additions and 7 deletions

View File

@@ -122,7 +122,7 @@ func (pp *proxySetProvider) getSubscriptionInfo() {
ctx, cancel := context.WithTimeout(context.Background(), time.Second*90)
defer cancel()
resp, err := mihomoHttp.HttpRequest(ctx, pp.Vehicle().(*resource.HTTPVehicle).Url(),
http.MethodGet, http.Header{"User-Agent": {"mihomo"}}, nil)
http.MethodGet, http.Header{"User-Agent": {C.UA}}, nil)
if err != nil {
return
}