mirror of
https://github.com/pgsty/minio.git
synced 2026-07-19 04:00:25 +03:00
ssl: Set a global boolean to enable SSL across Minio (#3558)
We have been using `isSSL()` everywhere we can set a global value once and re-use it again.
This commit is contained in:
@@ -67,7 +67,7 @@ func printStartupMessage(apiEndPoints []string) {
|
||||
|
||||
// SSL is configured reads certification chain, prints
|
||||
// authority and expiry.
|
||||
if isSSL() {
|
||||
if globalIsSSL {
|
||||
certs, err := readCertificateChain()
|
||||
fatalIf(err, "Unable to read certificate chain.")
|
||||
printCertificateMsg(certs)
|
||||
|
||||
Reference in New Issue
Block a user