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:
Harshavardhana
2017-01-11 13:59:51 -08:00
committed by GitHub
parent 12a7a15daa
commit 08b6cfb082
15 changed files with 130 additions and 65 deletions
+1 -4
View File
@@ -44,11 +44,8 @@ func mainVersion(ctx *cli.Context) {
cli.ShowCommandHelpAndExit(ctx, "version", 1)
}
// Set global variables after parsing passed arguments
setGlobalsFromContext(ctx)
// Initialization routine, such as config loading, enable logging, ..
minioInit()
minioInit(ctx)
if globalQuiet {
return