Skip to content

Commit 639090b

Browse files
authored
fix(webconsole): disable 3des cipher suites (#22296)
1 parent 6259647 commit 639090b

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

pkg/appsrv/appsrv.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -484,6 +484,10 @@ func timeoutHandle(h http.Handler) http.HandlerFunc {
484484
}
485485

486486
func (app *Application) initServer(addr string) *http.Server {
487+
return InitHTTPServer(app, addr)
488+
}
489+
490+
func InitHTTPServer(app *Application, addr string) *http.Server {
487491
/* db := AppContextDB(app.context)
488492
if db != nil {
489493
db.SetMaxIdleConns(app.connMax + 1)

pkg/webconsole/service/service.go

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -110,10 +110,9 @@ func start() {
110110
addr := net.JoinHostPort(o.Options.Address, strconv.Itoa(o.Options.Port))
111111
log.Infof("Start listen on %s", addr)
112112
if o.Options.EnableSsl {
113-
err := http.ListenAndServeTLS(addr,
114-
o.Options.SslCertfile,
115-
o.Options.SslKeyfile,
116-
root)
113+
srv := appsrv.InitHTTPServer(app, addr)
114+
srv.Handler = root
115+
err := srv.ListenAndServeTLS(o.Options.SslCertfile, o.Options.SslKeyfile)
117116
if err != nil && err != http.ErrServerClosed {
118117
log.Fatalf("%v", err)
119118
}

0 commit comments

Comments
 (0)