Skip to content

Commit

Permalink
fix: use TLS1.2 min
Browse files Browse the repository at this point in the history
  • Loading branch information
wangjq4214 committed Nov 13, 2024
1 parent 8c0542e commit 76ccb96
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions listen.go
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,7 @@ func (app *App) Listen(addr string, config ...ListenConfig) error {
app.SetTLSHandler(tlsHandler)
} else if cfg.AutoCertManager != nil {
tlsConfig = &tls.Config{
MinVersion: tls.VersionTLS12,
GetCertificate: cfg.AutoCertManager.GetCertificate,
NextProtos: []string{"http/1.1", "acme-tls/1"},
}
Expand Down

0 comments on commit 76ccb96

Please sign in to comment.