mirror of
https://github.com/minio/minio.git
synced 2025-11-20 18:06:10 -05:00
skip subdomain from bucket DNS which start with minio.domain (#10390)
extend host matcher to reject the host match
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user