diff options
Diffstat (limited to 'gemini/client.go')
-rw-r--r-- | gemini/client.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gemini/client.go b/gemini/client.go index 0a621dd..0a5dd76 100644 --- a/gemini/client.go +++ b/gemini/client.go @@ -27,6 +27,10 @@ type Client struct { // NewClient creates a gemini Client with the given TLS configuration and default MaxRedirects. func NewClient(tlsConf *tls.Config) Client { + if tlsConf != nil { + tlsConf = tlsConf.Clone() + tlsConf.InsecureSkipVerify = true + } return Client{tlsConf: tlsConf, MaxRedirects: DefaultMaxRedirects} } |