From ea2d615351ff8517852e03a1223bd70db5285472 Mon Sep 17 00:00:00 2001 From: tjpcc Date: Mon, 30 Oct 2023 10:25:01 -0600 Subject: always InsecureSkipVerify in gemini clients --- gemini/client.go | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'gemini') 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} } -- cgit v1.2.3