MX RRs: do not use `is_subdomain_valid?` function.

master
Philippe Pittoli 2024-03-18 02:41:10 +01:00
parent c7b0826da5
commit 336e231d3f
1 changed files with 2 additions and 2 deletions

View File

@ -584,8 +584,8 @@ class DNSManager::Storage::Zone
end
# MX target can either be a subdomain or a FQDN.
unless (Zone.is_subdomain_valid? @target || Zone.is_domain_valid? @target)
errors << "MX invalid target (domain or subdomain): #{@target}"
unless Zone.is_domain_valid? @target
errors << "MX invalid target (domain): #{@target}"
end
errors