fix: verify overlapping domains when > 1

master
Harshavardhana 4 years ago
parent 6cd255d516
commit 567f7bdd05
  1. 2
      cmd/common-main.go

@ -258,7 +258,7 @@ func handleCommonEnvVars() {
sort.Strings(globalDomainNames)
lcpSuf := lcpSuffix(globalDomainNames)
for _, domainName := range globalDomainNames {
if domainName == lcpSuf {
if domainName == lcpSuf && len(globalDomainNames) > 1 {
logger.Fatal(config.ErrOverlappingDomainValue(nil).Msg("Overlapping domains `%s` not allowed", globalDomainNames),
"Invalid MINIO_DOMAIN value in environment variable")
}

Loading…
Cancel
Save