mirror of
https://github.com/minio/minio.git
synced 2025-01-11 15:03:22 -05:00
Fix: Only add SRV records that match the bucket name exactly (#7957)
Problem: MinIO incorrectly appends DNS SRV records of buckets that have a prefix match with a given bucket. E.g bucket1 would incorrectly get bucket's DNS records too. Solution: This fix ensures that we only add SRV records that match the key exactly
This commit is contained in:
parent
0373a1699b
commit
8b5e6e338c
@ -84,7 +84,7 @@ func (c *coreDNS) Get(bucket string) ([]SrvRecord, error) {
|
||||
if record.Key != "" {
|
||||
continue
|
||||
}
|
||||
srvRecords = append(srvRecords, records...)
|
||||
srvRecords = append(srvRecords, record)
|
||||
}
|
||||
}
|
||||
if len(srvRecords) == 0 {
|
||||
|
Loading…
Reference in New Issue
Block a user