From: Sergey Matveev Date: Wed, 9 Nov 2022 11:24:42 +0000 (+0300) Subject: No reason to deal with TLS < 1.2 X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=c9265b6765d0eb190efb2a7050ff4b247fdb9954;p=godlighty.git No reason to deal with TLS < 1.2 --- diff --git a/tls.go b/tls.go index e30d4e3..40395f0 100644 --- a/tls.go +++ b/tls.go @@ -137,6 +137,7 @@ func LoadCertificates() { func NewTLSConfig() *tls.Config { return &tls.Config{ + MinVersion: tls.VersionTLS12, NextProtos: NextProtos, GetCertificate: GetCertificate, GetConfigForClient: GetConfigForClient,