mirror of
https://github.com/minio/minio.git
synced 2025-11-26 20:38:20 -05:00
Handle port as json.Number for DNS records in etcd (#8513)
This commit is contained in:
@@ -41,7 +41,7 @@ const etcdPathSeparator = "/"
|
||||
func newCoreDNSMsg(ip string, port string, ttl uint32) ([]byte, error) {
|
||||
return json.Marshal(&SrvRecord{
|
||||
Host: ip,
|
||||
Port: port,
|
||||
Port: json.Number(port),
|
||||
TTL: ttl,
|
||||
CreationDate: time.Now().UTC(),
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user