MX RRs: do not use is_subdomain_valid?
function.
This commit is contained in:
parent
c7b0826da5
commit
336e231d3f
1 changed files with 2 additions and 2 deletions
|
@ -584,8 +584,8 @@ class DNSManager::Storage::Zone
|
||||||
end
|
end
|
||||||
|
|
||||||
# MX target can either be a subdomain or a FQDN.
|
# MX target can either be a subdomain or a FQDN.
|
||||||
unless (Zone.is_subdomain_valid? @target || Zone.is_domain_valid? @target)
|
unless Zone.is_domain_valid? @target
|
||||||
errors << "MX invalid target (domain or subdomain): #{@target}"
|
errors << "MX invalid target (domain): #{@target}"
|
||||||
end
|
end
|
||||||
|
|
||||||
errors
|
errors
|
||||||
|
|
Loading…
Add table
Reference in a new issue