mirror of
https://github.com/pgsty/minio.git
synced 2026-08-09 15:53:28 +03:00
Handle port as json.Number for DNS records in etcd (#8513)
This commit is contained in:
+1
-1
@@ -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