fix: set tls min version to 1.2

This commit is contained in:
Richard Ramos 2022-11-09 15:34:57 -04:00 committed by RichΛrd
parent 8b64934e2c
commit 8c58037770
1 changed files with 1 additions and 0 deletions

View File

@ -404,6 +404,7 @@ func WithSecureWebsockets(address string, port int, certPath string, keyPath str
}
params.tlsConfig = &tls.Config{
Certificates: []tls.Certificate{certificate},
MinVersion: tls.VersionTLS12,
}
return nil