summaryrefslogtreecommitdiff
path: root/gemini/client.go
diff options
context:
space:
mode:
authortjpcc <tjp@ctrl-c.club>2023-10-30 10:25:01 -0600
committertjpcc <tjp@ctrl-c.club>2023-10-30 10:25:01 -0600
commitea2d615351ff8517852e03a1223bd70db5285472 (patch)
tree6ae61e2f7674cc8e0200678357cbc82ba5676289 /gemini/client.go
parent264b8d9f59be03dd68ce2c491bbf8a4d425441ac (diff)
always InsecureSkipVerify in gemini clients
Diffstat (limited to 'gemini/client.go')
-rw-r--r--gemini/client.go4
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}
}