pkg/webserver: force tls MinVersion to TLS1.2

Fixes #822

Change-Id: I26481f9666001ed13f9feb92e841c3b4d755a97d
This commit is contained in:
mpl 2016-07-19 17:38:41 +02:00
parent ebc1fa12d7
commit f3f8aa6f12
1 changed files with 1 additions and 0 deletions

View File

@ -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)