From 336e231d3f73a8ac564fdd66340b88c7c9b7dead Mon Sep 17 00:00:00 2001 From: Philippe Pittoli Date: Mon, 18 Mar 2024 02:41:10 +0100 Subject: [PATCH] MX RRs: do not use `is_subdomain_valid?` function. --- src/storage/zone.cr | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/storage/zone.cr b/src/storage/zone.cr index e7618ed..e90a40b 100644 --- a/src/storage/zone.cr +++ b/src/storage/zone.cr @@ -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