DashboardTLSMode Config Update

This commit is contained in:
EMRE ÇELİK 2022-06-17 20:20:36 +03:00 committed by GitHub
parent a76f4c5325
commit b02c6caade
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -84,8 +84,8 @@ func (svr *Service) RunDashboardServer(address string) (err error) {
return err
}
if svr.cfg.TLSOnly {
go server.ServeTLS(ln, svr.cfg.TLSCertFile, svr.cfg.TLSKeyFile)
if svr.cfg.DashboardTLSMode {
go server.ServeTLS(ln, svr.cfg.DashboardTLSCertFile, svr.cfg.DashboardTLSKeyFile)
} else {
go server.Serve(ln)
}