mirror of
https://github.com/internetee/registry.git
synced 2025-07-03 09:43:36 +02:00
Fix ns info epp output
This commit is contained in:
parent
a4ecfe92c5
commit
224053a9a1
1 changed files with 4 additions and 8 deletions
|
@ -24,15 +24,11 @@ xml.epp_head do
|
||||||
|
|
||||||
xml.tag!('domain:ns') do
|
xml.tag!('domain:ns') do
|
||||||
@domain.nameservers.each do |x|
|
@domain.nameservers.each do |x|
|
||||||
if x.ipv4.present? || x.ipv6.present?
|
|
||||||
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?
|
xml.tag!('domain:hostAddr', x.ipv4, 'ip' => 'v4') if x.ipv4.present?
|
||||||
xml.tag!('domain:hostAddr', x.ipv6, 'ip' => 'v6') if x.ipv6.present?
|
xml.tag!('domain:hostAddr', x.ipv6, 'ip' => 'v6') if x.ipv6.present?
|
||||||
end
|
end
|
||||||
else
|
|
||||||
xml.tag!('domain:hostObj', x.hostname)
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue