Handle port as json.Number for DNS records in etcd (#8513)

This commit is contained in:
Harshavardhana
2019-11-12 14:42:35 -08:00
committed by GitHub
parent d97d53bddc
commit 2dad14974e
4 changed files with 12 additions and 11 deletions

View File

@@ -103,7 +103,7 @@ func initFederatorBackend(buckets []BucketInfo, objLayer ObjectLayer) {
}
// This is not for our server, so we can continue
hostPort := net.JoinHostPort(dnsBuckets[index].Host, dnsBuckets[index].Port)
hostPort := net.JoinHostPort(dnsBuckets[index].Host, string(dnsBuckets[index].Port))
if globalDomainIPs.Intersection(set.CreateStringSet(hostPort)).IsEmpty() {
return nil
}