Chore: code style

This commit is contained in:
yaling888
2022-06-06 02:37:10 +08:00
parent bf9eb000d2
commit 763929997b
11 changed files with 44 additions and 307 deletions

View File

@@ -119,7 +119,7 @@ func doGet(url string) (resp *http.Response, err error) {
return
}
convert.SetUserAgent(req)
convert.SetUserAgent(req.Header)
resp, err = http.DefaultClient.Do(req)
return

View File

@@ -6,7 +6,6 @@ import (
"runtime"
"github.com/Dreamacro/clash/component/geodata"
_ "github.com/Dreamacro/clash/component/geodata/standard"
C "github.com/Dreamacro/clash/constant"
"github.com/oschwald/geoip2-golang"