From 28af63fd8456b2ed773efe2ef2cc8c7647a6550c Mon Sep 17 00:00:00 2001 From: "Gerasimos (Makis) Maropoulos" Date: Sun, 6 Mar 2022 21:15:11 +0200 Subject: [PATCH] minor --- core/netutil/tcp.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/netutil/tcp.go b/core/netutil/tcp.go index 9f33ee81..7a2b37e1 100644 --- a/core/netutil/tcp.go +++ b/core/netutil/tcp.go @@ -106,6 +106,7 @@ func CERT(addr string, cert tls.Certificate) (net.Listener, error) { tlsConfig := &tls.Config{ Certificates: []tls.Certificate{cert}, PreferServerCipherSuites: true, + MinVersion: tls.VersionTLS11, } return tls.NewListener(l, tlsConfig), nil } @@ -145,7 +146,7 @@ func LETSENCRYPT(addr string, reuse bool, serverName string, cacheDirOptional .. } else { m.Cache = autocert.DirCache(cacheDir) } - tlsConfig := &tls.Config{GetCertificate: m.GetCertificate, MinVersion: tls.VersionTLS13} + tlsConfig := &tls.Config{GetCertificate: m.GetCertificate, MinVersion: tls.VersionTLS11} // use InsecureSkipVerify or ServerName to a value if serverName == "" {