Compare commits
No commits in common. "723c1a83a0b03a8923f6133523758abea2a96287" and "4606f852ccded6e0017f1a826acd4a454929317d" have entirely different histories.
723c1a83a0
...
4606f852cc
@ -51,11 +51,7 @@ class DNSManager::Client < IPC
|
||||
def user_domain_add(domain : String)
|
||||
request = Request::NewDomain.new domain
|
||||
send_now request
|
||||
parse_message [ Response::DomainAdded,
|
||||
Response::DomainAlreadyExists,
|
||||
Response::InvalidDomainName,
|
||||
Response::UnacceptableDomain
|
||||
], read
|
||||
parse_message [ Response::Success ], read
|
||||
end
|
||||
|
||||
# Remove a domain.
|
||||
|
@ -133,8 +133,6 @@ class DNSManager::Storage
|
||||
end
|
||||
|
||||
matching_domains.each do |md|
|
||||
# Prevent empty domains (from crafted requests) to be accepted.
|
||||
return Response::InvalidDomainName.new unless (domain.chomp md).size > 2
|
||||
Baguette::Log.info "Add new domain #{domain} (matching domain #{md})"
|
||||
end
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user