Compare commits

..
2 Commits
Author SHA1 Message Date
gohumble ff1548c184 return default http client for empty socks host configuration 2022-11-28 19:31:40 +01:00
gohumbleandGitHub c611969feb moved translation (#431) 2022-11-03 10:15:48 +01:00
+3
View File
@@ -54,6 +54,9 @@ func GetClient(clientType ClientType) (*http.Client, error) {
if cfg == nil {
return &client, nil
}
if cfg.Host == "" {
return &client, nil
}
proxyURL, _ := url.Parse(cfg.Host)
specialTransport := &http.Transport{}
specialTransport.Proxy = http.ProxyURL(proxyURL)