perf: force use tls 1.1 #99

This commit is contained in:
docooler
2021-12-22 17:12:01 +08:00
committed by GitHub
parent 18ecdb50ef
commit 4a55679095
+1
View File
@@ -367,6 +367,7 @@ func listenDevice(br *broker) {
tlsConfig.Certificates = []tls.Certificate{crt}
tlsConfig.Time = time.Now
tlsConfig.Rand = rand.Reader
tlsConfig.MinVersion = tls.VersionTLS12
if cfg.SslCacert == "" {
log.Warn().Msgf("mTLS not enabled")