mirror of
https://github.com/pgsty/minio.git
synced 2026-07-20 20:50:22 +03:00
Allow CNAME records when specified as MINIO_PUBLIC_IPS (#8662)
This is necessary for `m3` global bucket support
This commit is contained in:
committed by
Nitish Tiwari
parent
63c3114657
commit
c9c0d5eec2
+14
-8
@@ -694,17 +694,23 @@ func updateDomainIPs(endPoints set.StringSet) {
|
||||
continue
|
||||
}
|
||||
}
|
||||
IPs, err := getHostIP(host)
|
||||
if err != nil {
|
||||
continue
|
||||
|
||||
if net.ParseIP(host) == nil {
|
||||
IPs, err := getHostIP(host)
|
||||
if err != nil {
|
||||
continue
|
||||
}
|
||||
|
||||
IPsWithPort := IPs.ApplyFunc(func(ip string) string {
|
||||
return net.JoinHostPort(ip, port)
|
||||
})
|
||||
|
||||
ipList = ipList.Union(IPsWithPort)
|
||||
}
|
||||
|
||||
IPsWithPort := IPs.ApplyFunc(func(ip string) string {
|
||||
return net.JoinHostPort(ip, port)
|
||||
})
|
||||
|
||||
ipList = ipList.Union(IPsWithPort)
|
||||
ipList.Add(net.JoinHostPort(host, port))
|
||||
}
|
||||
|
||||
globalDomainIPs = ipList.FuncMatch(func(ip string, matchString string) bool {
|
||||
host, _, err := net.SplitHostPort(ip)
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user