Fix about matching acceptable domains.
This commit is contained in:
parent
81d34862e2
commit
63b32d8932
1 changed files with 1 additions and 1 deletions
|
|
@ -70,7 +70,7 @@ class DNSManager::Storage
|
||||||
|
|
||||||
# Verify if the domain is acceptable.
|
# Verify if the domain is acceptable.
|
||||||
matching_domains = accepted_domains.select { |adomain| domain.ends_with? adomain }
|
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}"
|
Baguette::Log.warning "trying to add an unacceptable domain: #{domain}"
|
||||||
return Response::UnacceptableDomain.new
|
return Response::UnacceptableDomain.new
|
||||||
end
|
end
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue