bumps minimal tls version (#1012)

This commit is contained in:
Nikolay 2021-01-13 01:35:47 +03:00 committed by Aliaksandr Valialkin
parent b71748f1d9
commit 095be83f2f

View File

@ -90,6 +90,8 @@ func Serve(addr string, rh RequestHandler) {
}
cfg := &tls.Config{
Certificates: []tls.Certificate{cert},
MinVersion: tls.VersionTLS12,
PreferServerCipherSuites: true,
}
ln = tls.NewListener(ln, cfg)
}