Skip to content

Commit

Permalink
bypass tls error in smart dns
Browse files Browse the repository at this point in the history
  • Loading branch information
uoosef committed Sep 10, 2023
1 parent 4f27e78 commit 487733e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions dialer/http.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ package dialer

import (
"context"
"crypto/tls"
"net"
"net/http"
"net/url"
Expand All @@ -12,6 +13,7 @@ import (
// MakeHTTPClient creates an HTTP client with custom dialing behavior.
func (d *Dialer) MakeHTTPClient(enableProxy bool) *http.Client {
transport := &http.Transport{
TLSClientConfig: &tls.Config{InsecureSkipVerify: true},
ForceAttemptHTTP2: false,
DialContext: func(ctx context.Context, network, addr string) (net.Conn, error) {
return d.TCPDial(network, addr)
Expand Down

0 comments on commit 487733e

Please sign in to comment.