Projects STRLCPY prox5 Commits a4b07983
🤬
  • ■ ■ ■ ■ ■ ■
    mr_worldwide.go
    skipped 4 lines
    5 5   "crypto/tls"
    6 6   "net"
    7 7   "net/http"
    8  - "net/url"
    9 8  )
    10 9   
    11 10  // GetHTTPClient retrieves a pointer to an http.Client powered by MysteryDialer.
    12 11  func (pe *ProxyEngine) GetHTTPClient() *http.Client {
    13  - var htp func(*http.Request) (*url.URL, error)
     12 + // var htp func(*http.Request) (*url.URL, error)
    14 13   var dctx func(ctx context.Context, network string, addr string) (net.Conn, error)
    15  - if httun, htok := pe.GetHTTPTunnel(); htok {
    16  - httprox, uerr := url.Parse("http://" + httun.Endpoint)
    17  - if uerr == nil {
    18  - htp = http.ProxyURL(httprox)
    19  - }
    20  - }
    21  - if htp == nil {
    22  - dctx = pe.DialContext
    23  - }
     14 + // if httun, htok := pe.GetHTTPTunnel(); htok {
     15 + // httprox, uerr := url.Parse("http://" + httun.Endpoint)
     16 + // if uerr == nil {
     17 + // htp = http.ProxyURL(httprox)
     18 + // }
     19 + // }
     20 + // if htp == nil {
     21 + dctx = pe.DialContext
     22 + // }
    24 23   return &http.Client{
    25 24   Transport: &http.Transport{
    26  - Proxy: htp,
     25 + // Proxy: htp,
    27 26   DialContext: dctx,
    28 27   TLSClientConfig: &tls.Config{InsecureSkipVerify: true},
    29 28   TLSHandshakeTimeout: pe.GetServerTimeout(),
    skipped 15 lines
Please wait...
Page is in error, reload to recover