From 63b32d8932459da17fa43cbd67af1109b98824f9 Mon Sep 17 00:00:00 2001 From: Philippe Pittoli Date: Fri, 30 Jun 2023 00:01:25 +0200 Subject: [PATCH] Fix about matching acceptable domains. --- src/storage.cr | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/storage.cr b/src/storage.cr index e2a42a0..54e5638 100644 --- a/src/storage.cr +++ b/src/storage.cr @@ -70,7 +70,7 @@ class DNSManager::Storage # Verify if the domain is acceptable. matching_domains = accepted_domains.select { |adomain| domain.ends_with? adomain } - unless matching_domains + unless matching_domains.size > 0 Baguette::Log.warning "trying to add an unacceptable domain: #{domain}" return Response::UnacceptableDomain.new end