From 54fc2a6780036cac5584eca4de6bfab1ff5d529e Mon Sep 17 00:00:00 2001 From: mzz2017 Date: Sun, 13 Mar 2022 18:22:20 +0800 Subject: [PATCH] chore: fix import cycle --- service/core/v2ray/asset/asset.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/service/core/v2ray/asset/asset.go b/service/core/v2ray/asset/asset.go index 1a529ce2..c7cd04be 100644 --- a/service/core/v2ray/asset/asset.go +++ b/service/core/v2ray/asset/asset.go @@ -6,12 +6,12 @@ import ( "github.com/adrg/xdg" "github.com/muhammadmuzzammil1998/jsonc" "github.com/v2rayA/v2rayA/common/files" - "github.com/v2rayA/v2rayA/common/httpClient" "github.com/v2rayA/v2rayA/conf" "github.com/v2rayA/v2rayA/core/v2ray/where" "github.com/v2rayA/v2rayA/pkg/util/log" "io" "io/fs" + "net/http" "os" "path" "path/filepath" @@ -141,7 +141,7 @@ func GetV2rayConfigDirPath() (p string) { } func Download(url string, to string) (err error) { - resp, err := httpClient.GetHttpClientAutomatically().Get(url) + resp, err := http.Get(url) if err != nil || resp.StatusCode != 200 { if err == nil { defer resp.Body.Close()