Refactor refreshAvatar()

This commit is contained in:
Yang Luo
2023-06-17 11:43:46 +08:00
parent 501f0dc74f
commit b9140e2d5a
8 changed files with 286 additions and 174 deletions

View File

@ -15,6 +15,7 @@
package proxy
import (
"crypto/tls"
"fmt"
"net"
"net/http"
@ -71,7 +72,7 @@ func getProxyHttpClient() *http.Client {
panic(err)
}
tr := &http.Transport{Dial: dialer.Dial}
tr := &http.Transport{Dial: dialer.Dial, TLSClientConfig: &tls.Config{InsecureSkipVerify: true}}
return &http.Client{
Transport: tr,
}