mirror of
https://github.com/go-gitea/gitea
synced 2024-12-23 00:54:28 +00:00
Set TLS minimum version to 1.2 (#12689)
Signed-off-by: Andrew Thornton <art27@cantab.net>
This commit is contained in:
parent
5fd9f72104
commit
702e98c5ec
@ -128,6 +128,8 @@ func (srv *Server) ListenAndServeTLS(certFile, keyFile string, serve ServeFuncti
|
|||||||
func (srv *Server) ListenAndServeTLSConfig(tlsConfig *tls.Config, serve ServeFunction) error {
|
func (srv *Server) ListenAndServeTLSConfig(tlsConfig *tls.Config, serve ServeFunction) error {
|
||||||
go srv.awaitShutdown()
|
go srv.awaitShutdown()
|
||||||
|
|
||||||
|
tlsConfig.MinVersion = tls.VersionTLS12
|
||||||
|
|
||||||
l, err := GetListener(srv.network, srv.address)
|
l, err := GetListener(srv.network, srv.address)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Error("Unable to get Listener: %v", err)
|
log.Error("Unable to get Listener: %v", err)
|
||||||
|
Loading…
Reference in New Issue
Block a user