//设置代理
proxy := func(req *http.Request) (*url.URL, error) {
u, _ := url.ParseRequestURI("http://127.0.0.1:8888")
return u, nil
}
if strings.HasPrefix(urlstr, "https") {
tr := &http.Transport{
TLSClientConfig: &tls.Config{
InsecureSkipVerify: true,
},
TLSNextProto: make(map[string]func(authority string, c *tls.Conn) http.RoundTripper),
}