mirror of
https://github.com/v2rayA/v2rayA.git
synced 2026-11-20 23:02:25 +03:00
chore: fix import cycle
This commit is contained in:
1 parent
ec997eed9d
commit
54fc2a6780
1 file changed
+2
-2
@@ -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()
|
||||
|
||||
Reference in new issue
Block a user