From 723c1a83a0b03a8923f6133523758abea2a96287 Mon Sep 17 00:00:00 2001 From: Philippe PITTOLI Date: Sun, 28 Apr 2024 16:17:47 +0200 Subject: [PATCH] Update expected messages. --- src/client/lib/dnsmanager-client.cr | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/client/lib/dnsmanager-client.cr b/src/client/lib/dnsmanager-client.cr index a98222c..92485cc 100644 --- a/src/client/lib/dnsmanager-client.cr +++ b/src/client/lib/dnsmanager-client.cr @@ -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.