diff options
author | tjpcc <tjp@ctrl-c.club> | 2023-10-30 10:25:01 -0600 |
---|---|---|
committer | tjpcc <tjp@ctrl-c.club> | 2023-10-30 10:25:01 -0600 |
commit | ea2d615351ff8517852e03a1223bd70db5285472 (patch) | |
tree | 6ae61e2f7674cc8e0200678357cbc82ba5676289 | |
parent | 264b8d9f59be03dd68ce2c491bbf8a4d425441ac (diff) |
always InsecureSkipVerify in gemini clients
-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} } |