mirror of
https://github.com/internetee/registry.git
synced 2025-07-05 18:53:26 +02:00
Story#109070142 - Nameservers in epp includes several ip4 and ip6
This commit is contained in:
parent
91b65e2d61
commit
539a40b34c
1 changed files with 2 additions and 2 deletions
|
@ -27,8 +27,8 @@ xml.epp_head do
|
||||||
@nameservers.each do |x|
|
@nameservers.each do |x|
|
||||||
xml.tag!('domain:hostAttr') do
|
xml.tag!('domain:hostAttr') do
|
||||||
xml.tag!('domain:hostName', x.hostname)
|
xml.tag!('domain:hostName', x.hostname)
|
||||||
xml.tag!('domain:hostAddr', x.ipv4, 'ip' => 'v4') if x.ipv4.present?
|
x.ipv4.each{|ip| xml.tag!('domain:hostAddr', ip, 'ip' => 'v4') } if x.ipv4.present?
|
||||||
xml.tag!('domain:hostAddr', x.ipv6, 'ip' => 'v6') if x.ipv6.present?
|
x.ipv6.each{|ip| xml.tag!('domain:hostAddr', ip, 'ip' => 'v6') } if x.ipv6.present?
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue