Update expected messages.
This commit is contained in:
parent
ebd9bd75a5
commit
723c1a83a0
@ -51,7 +51,11 @@ class DNSManager::Client < IPC
|
||||
def user_domain_add(domain : String)
|
||||
request = Request::NewDomain.new domain
|
||||
send_now request
|
||||
parse_message [ Response::Success ], read
|
||||
parse_message [ Response::DomainAdded,
|
||||
Response::DomainAlreadyExists,
|
||||
Response::InvalidDomainName,
|
||||
Response::UnacceptableDomain
|
||||
], read
|
||||
end
|
||||
|
||||
# Remove a domain.
|
||||
|
Loading…
Reference in New Issue
Block a user