Browse Source

Set TLS minimum version to 1.2 (#12689)

Signed-off-by: Andrew Thornton <art27@cantab.net>
for-closed-social
zeripath 3 years ago
committed by GitHub
parent
commit
702e98c5ec
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      modules/graceful/server.go

+ 2
- 0
modules/graceful/server.go View File

@ -128,6 +128,8 @@ func (srv *Server) ListenAndServeTLS(certFile, keyFile string, serve ServeFuncti
func (srv *Server) ListenAndServeTLSConfig(tlsConfig *tls.Config, serve ServeFunction) error {
go srv.awaitShutdown()
tlsConfig.MinVersion = tls.VersionTLS12
l, err := GetListener(srv.network, srv.address)
if err != nil {
log.Error("Unable to get Listener: %v", err)

Loading…
Cancel
Save