Support TLS 1.3 (#923)

* Support TLS 1.3

* Set TLS 1.3 explicitly to fix gosec warning.

* Add an entry to changelog.

* Fix typo in the changelog.

Co-authored-by: Joel Speed <Joel.speed@hotmail.co.uk>
This commit is contained in:
Akira Ajisaka
2020-11-19 10:25:53 +00:00
committed by GitHub
co-authored by Joel Speed
parent 430355b203
commit ed92df3537
2 changed files with 4 additions and 3 deletions
+1 -1
View File
@@ -64,7 +64,7 @@ func (s *Server) ServeHTTPS() {
addr := s.Opts.HTTPSAddress
config := &tls.Config{
MinVersion: tls.VersionTLS12,
MaxVersion: tls.VersionTLS12,
MaxVersion: tls.VersionTLS13,
}
if config.NextProtos == nil {
config.NextProtos = []string{"http/1.1"}