Skip to content

Commit f321047

Browse files
committed
Require minimum TLSv1.3
1 parent bc6e98d commit f321047

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

servers/https.go

+1
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ func NewHttpsServer(conf *conf.Conf) *http.Server {
3232
rateLimiter.ServeHTTP(rw, req)
3333
}),
3434
TLSConfig: &tls.Config{
35+
MinVersion: tls.VersionTLS13,
3536
GetCertificate: func(info *tls.ClientHelloInfo) (*tls.Certificate, error) {
3637
// error out on invalid domains
3738
if !conf.Domains.IsValid(info.ServerName) {

0 commit comments

Comments
 (0)