mirror of
https://github.com/pgsty/minio.git
synced 2026-07-22 13:40:22 +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:
@@ -106,7 +106,7 @@ func updateCredsOnPeers(creds credential) map[string]error {
|
||||
accessKey: serverCred.AccessKey,
|
||||
secretKey: serverCred.SecretKey,
|
||||
serverAddr: peers[ix],
|
||||
secureConn: isSSL(),
|
||||
secureConn: globalIsSSL,
|
||||
serviceEndpoint: path.Join(reservedBucket, browserPeerPath),
|
||||
serviceName: "Browser",
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user