diff options
author | Yotam Nachum <me@yotam.net> | 2019-11-16 22:43:06 +0200 |
---|---|---|
committer | Yotam Nachum <me@yotam.net> | 2019-11-16 22:43:06 +0200 |
commit | 8ebb75240eefc7b7149dc33848da5a46034cab53 (patch) | |
tree | f69a8143a1650d35b487a5bf4c65fdf78cf05ee4 | |
parent | Extract Fetch to a client struct (diff) | |
download | go-gemini-8ebb75240eefc7b7149dc33848da5a46034cab53.tar.gz go-gemini-8ebb75240eefc7b7149dc33848da5a46034cab53.zip |
Set the minimum TLS version to TLS 1.2
The protocol specification says that the required minimum TLS version is
1.2 and the clients should refuse lower versions.
-rw-r--r-- | client.go | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -51,6 +51,7 @@ func (c Client) connect(rawURL string) (io.ReadWriteCloser, error) { } conf := &tls.Config{ + MinVersion: tls.VersionTLS12, InsecureSkipVerify: c.InsecureSkipVerify, } |