This commit is contained in:
eson 2023-08-21 16:38:11 +08:00
parent 8a4c41d518
commit 1a230252c7

View File

@ -133,7 +133,11 @@ func main() {
panic(err)
}
tlscfg := &tls.Config{Certificates: []tls.Certificate{cert}}
tlscfg := &tls.Config{
Certificates: []tls.Certificate{cert},
MinVersion: tls.VersionTLS12,
MaxVersion: tls.VersionTLS13,
}
serv := http.Server{
Addr: ServerAddress,
Handler: mux,