mirror of https://github.com/perkeep/perkeep.git
pkg/webserver: force tls MinVersion to TLS1.2
Fixes #822 Change-Id: I26481f9666001ed13f9feb92e841c3b4d755a97d
This commit is contained in:
parent
ebc1fa12d7
commit
f3f8aa6f12
|
@ -176,6 +176,7 @@ func (s *Server) Listen(addr string) error {
|
|||
Rand: rand.Reader,
|
||||
Time: time.Now,
|
||||
NextProtos: []string{http2.NextProtoTLS, "http/1.1"},
|
||||
MinVersion: tls.VersionTLS12,
|
||||
}
|
||||
config.Certificates = make([]tls.Certificate, 1)
|
||||
|
||||
|
|
Loading…
Reference in New Issue