fix(webconsole): disable 3des cipher suites (#22294)

This commit is contained in:
Zexi Li
2025-03-18 13:12:17 +08:00
committed by GitHub
parent 357b5c1f43
commit d34db8ebf5
2 changed files with 7 additions and 4 deletions
+4
View File
@@ -478,6 +478,10 @@ func timeoutHandle(h http.Handler) http.HandlerFunc {
}
func (app *Application) initServer(addr string) *http.Server {
return InitHTTPServer(app, addr)
}
func InitHTTPServer(app *Application, addr string) *http.Server {
/* db := AppContextDB(app.context)
if db != nil {
db.SetMaxIdleConns(app.connMax + 1)
+3 -4
View File
@@ -110,10 +110,9 @@ func start() {
addr := net.JoinHostPort(o.Options.Address, strconv.Itoa(o.Options.Port))
log.Infof("Start listen on %s", addr)
if o.Options.EnableSsl {
err := http.ListenAndServeTLS(addr,
o.Options.SslCertfile,
o.Options.SslKeyfile,
root)
srv := appsrv.InitHTTPServer(app, addr)
srv.Handler = root
err := srv.ListenAndServeTLS(o.Options.SslCertfile, o.Options.SslKeyfile)
if err != nil && err != http.ErrServerClosed {
log.Fatalf("%v", err)
}