]> Sergey Matveev's repositories - godlighty.git/commitdiff
No reason to deal with TLS < 1.2
authorSergey Matveev <stargrave@stargrave.org>
Wed, 9 Nov 2022 11:24:42 +0000 (14:24 +0300)
committerSergey Matveev <stargrave@stargrave.org>
Wed, 9 Nov 2022 11:25:05 +0000 (14:25 +0300)
tls.go

diff --git a/tls.go b/tls.go
index e30d4e361a2ac485053fe13d2fc8599f70468569..40395f0c590de89b0b4b516a70ba512897c4c4f5 100644 (file)
--- 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,