Skip to content

Commit

Permalink
perf: force use tls 1.1 #99
Browse files Browse the repository at this point in the history
  • Loading branch information
docooler authored Dec 22, 2021
1 parent 18ecdb5 commit 4a55679
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions device.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit 4a55679

Please sign in to comment.