mirror of
https://github.com/internetee/registry.git
synced 2025-07-25 03:58:27 +02:00
Validate IPv4 on nameserver when in the same zone with domain
This commit is contained in:
parent
4f780e0c1a
commit
b85420a598
4 changed files with 28 additions and 0 deletions
|
@ -17,6 +17,9 @@ class Nameserver < ActiveRecord::Base
|
|||
[:hostname, :invalid, { value: { obj: 'hostObj', val: hostname } }],
|
||||
[:ipv4, :invalid, { value: { obj: 'hostAddr', val: ipv4 } }],
|
||||
[:ipv6, :invalid, { value: { obj: 'hostAddr', val: ipv6 } }]
|
||||
],
|
||||
'2306' => [
|
||||
[:ipv4, :blank]
|
||||
]
|
||||
}
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue