mirror of
https://github.com/minio/minio.git
synced 2025-01-12 15:33:22 -05:00
fix: verify overlapping domains when > 1
This commit is contained in:
parent
6cd255d516
commit
567f7bdd05
@ -258,7 +258,7 @@ func handleCommonEnvVars() {
|
|||||||
sort.Strings(globalDomainNames)
|
sort.Strings(globalDomainNames)
|
||||||
lcpSuf := lcpSuffix(globalDomainNames)
|
lcpSuf := lcpSuffix(globalDomainNames)
|
||||||
for _, domainName := range 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),
|
logger.Fatal(config.ErrOverlappingDomainValue(nil).Msg("Overlapping domains `%s` not allowed", globalDomainNames),
|
||||||
"Invalid MINIO_DOMAIN value in environment variable")
|
"Invalid MINIO_DOMAIN value in environment variable")
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user