diff --git a/cmd/common-main.go b/cmd/common-main.go index b7bba09c2..3b860a61c 100644 --- a/cmd/common-main.go +++ b/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") }