~yotam/go-gemini

8ebb75240eefc7b7149dc33848da5a46034cab53 — Yotam Nachum 5 years ago 53586d2 master
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.
1 files changed, 1 insertions(+), 0 deletions(-)

M client.go
M client.go => client.go +1 -0
@@ 51,6 51,7 @@ func (c Client) connect(rawURL string) (io.ReadWriteCloser, error) {
	}

	conf := &tls.Config{
		MinVersion:         tls.VersionTLS12,
		InsecureSkipVerify: c.InsecureSkipVerify,
	}