mirror of
https://github.com/internetee/registry.git
synced 2025-06-05 20:27:30 +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 } }]
|
||||
],
|
||||
'2003' => [
|
||||
[:ipv4, :blank]
|
||||
%i[base ip_required],
|
||||
]
|
||||
}
|
||||
end
|
||||
|
@ -83,6 +83,7 @@ class Nameserver < ApplicationRecord
|
|||
|
||||
def glue_record_required?
|
||||
return unless hostname? && domain
|
||||
|
||||
DomainName(hostname).domain == domain.name
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue