summaryrefslogtreecommitdiff
path: root/gemini/client.go
diff options
context:
space:
mode:
Diffstat (limited to 'gemini/client.go')
-rw-r--r--gemini/client.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/gemini/client.go b/gemini/client.go
index 338271c..b677483 100644
--- a/gemini/client.go
+++ b/gemini/client.go
@@ -52,12 +52,12 @@ func (client Client) RoundTrip(request *sr.Request) (*sr.Response, error) {
host = net.JoinHostPort(host, "1965")
}
- tlsConf := tls.Config{InsecureSkipVerify: true}
- if (client.tlsConf != nil) {
- tlsConf = *client.tlsConf
+ tlsConf := client.tlsConf
+ if (tlsConf == nil) {
+ tlsConf = &tls.Config{InsecureSkipVerify: true}
}
- conn, err := tls.Dial("tcp", host, &tlsConf)
+ conn, err := tls.Dial("tcp", host, tlsConf)
if err != nil {
return nil, err
}