diff --git a/config/config.go b/config/config.go index 8fdb6f6..0e21772 100644 --- a/config/config.go +++ b/config/config.go @@ -15,7 +15,7 @@ import ( ) const ( - VERSION string = "0.6.3" + VERSION string = "0.6.4" DefaultUserAgent string = "Dodo/" + VERSION DefaultMethod string = "GET" DefaultTimeout time.Duration = time.Second * 10 diff --git a/requests/client.go b/requests/client.go index 621490d..cffae25 100644 --- a/requests/client.go +++ b/requests/client.go @@ -2,6 +2,7 @@ package requests import ( "context" + "crypto/tls" "errors" "math/rand" "net/url" @@ -39,8 +40,11 @@ func getClients( } clients = append(clients, &fasthttp.HostClient{ - MaxConns: int(maxConns), - IsTLS: isTLS, + MaxConns: int(maxConns), + IsTLS: isTLS, + TLSConfig: &tls.Config{ + InsecureSkipVerify: true, + }, Addr: addr, Dial: dialFunc, MaxIdleConnDuration: timeout, @@ -56,6 +60,9 @@ func getClients( client := &fasthttp.HostClient{ MaxConns: int(maxConns), IsTLS: isTLS, + TLSConfig: &tls.Config{ + InsecureSkipVerify: true, + }, Addr: URL.Host, MaxIdleConnDuration: timeout, MaxConnDuration: timeout,