mirror of
https://github.com/internetee/registry.git
synced 2025-06-07 05:05:45 +02:00
Render EPP error when IP missing for glue record
This commit is contained in:
parent
1728ccaa5a
commit
ecbed47a68
1 changed files with 2 additions and 1 deletions
|
@ -48,7 +48,7 @@ class Nameserver < ApplicationRecord
|
||||||
[:ipv6, :invalid, { value: { obj: 'hostAddr', val: ipv6 } }]
|
[:ipv6, :invalid, { value: { obj: 'hostAddr', val: ipv6 } }]
|
||||||
],
|
],
|
||||||
'2003' => [
|
'2003' => [
|
||||||
[:ipv4, :blank]
|
%i[base ip_required],
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
@ -83,6 +83,7 @@ class Nameserver < ApplicationRecord
|
||||||
|
|
||||||
def glue_record_required?
|
def glue_record_required?
|
||||||
return unless hostname? && domain
|
return unless hostname? && domain
|
||||||
|
|
||||||
DomainName(hostname).domain == domain.name
|
DomainName(hostname).domain == domain.name
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue