skip subdomain from bucket DNS which start with minio.domain (#10390)

extend host matcher to reject the host match
This commit is contained in:
Harshavardhana
2020-09-09 09:57:37 -07:00
committed by GitHub
parent 6019628f7d
commit 958661cbb5
2 changed files with 40 additions and 3 deletions

View File

@@ -404,6 +404,9 @@ func getResource(path string, host string, domains []string) (string, error) {
}
}
for _, domain := range domains {
if host == minioReservedBucket+"."+domain {
continue
}
if !strings.HasSuffix(host, "."+domain) {
continue
}