epp-client-hostmaster 0.2.5 → 0.2.6
Sign up to get free protection for your applications and to get access to all the features.
@@ -27,8 +27,8 @@ module EPPClient
|
|
27
27
|
|
28
28
|
def domain_nss_xml(xml, nss)
|
29
29
|
xml.domain :ns do
|
30
|
-
nss.
|
31
|
-
|
30
|
+
if nss.first.is_a? Hash
|
31
|
+
nss.each do |ns|
|
32
32
|
xml.domain :hostAttr do
|
33
33
|
xml.domain :hostName, ns[:hostName]
|
34
34
|
if ns.key?(:hostAddrv4)
|
@@ -42,7 +42,9 @@ module EPPClient
|
|
42
42
|
end
|
43
43
|
end
|
44
44
|
end
|
45
|
-
|
45
|
+
end
|
46
|
+
else
|
47
|
+
nss.each do |ns|
|
46
48
|
xml.domain :hostObj, ns
|
47
49
|
end
|
48
50
|
end
|