Subject: | Wrong key name in hostAttr model for domain_info |
There's a problem with the example for "Domain Information" section, under
" If the server uses the "hostAttr" model instead of "hostObj", then the "ns" member will look like this:".
The key name for IP version it's "version", not "type". Also the addrs array elements must be a hash, otherwise there's a compilation error "Can't use string ("version") as a HASH ref while "strict refs" in use at .../Net/EPP/Frame/Command/Create/Domain.pm"
Diff attached for more clarity, over centralnic's gitlab version :)
Thanks!
Subject: | Net-EPP_lib_Net_EPP_Simple.patch |
--- Net-EPP_lib_Net_EPP_Simple.pm.orig 2020-08-06 11:43:32.479478577 -0400
+++ Net-EPP_lib_Net_EPP_Simple.pm 2020-08-06 11:44:45.923996561 -0400
@@ -769,17 +769,17 @@
$info->{ns} = [
{
name => 'ns0.example.com',
- addrs => [
- type => 'v4',
+ addrs => [ {
+ version => 'v4',
addr => '10.0.0.1',
- ],
+ } ],
},
{
name => 'ns1.example.com',
- addrs => [
- type => 'v4',
+ addrs => [ {
+ version => 'v4',
addr => '10.0.0.2',
- ],
+ } ],
},
];