Fix wrong parameters for a request.
This commit is contained in:
parent
5a322b4193
commit
f8ac920fd9
1 changed files with 2 additions and 4 deletions
|
|
@ -41,14 +41,12 @@ class DNSManager::Request
|
||||||
|
|
||||||
IPC::JSON.message ResetDelegation, 27 do
|
IPC::JSON.message ResetDelegation, 27 do
|
||||||
property domain : String
|
property domain : String
|
||||||
property nameserver1 : String
|
def initialize(@domain)
|
||||||
property nameserver2 : String
|
|
||||||
def initialize(@domain, @nameserver1, @nameserver2)
|
|
||||||
end
|
end
|
||||||
|
|
||||||
def to_s(io : IO)
|
def to_s(io : IO)
|
||||||
super io
|
super io
|
||||||
io << " (domain: #{@domain}, ns1: #{@nameserver1}, ns2: #{@nameserver2}"
|
io << " (domain: #{@domain}"
|
||||||
end
|
end
|
||||||
|
|
||||||
def handle(dnsmanagerd : DNSManager::Service, event : IPC::Event) : IPC::JSON
|
def handle(dnsmanagerd : DNSManager::Service, event : IPC::Event) : IPC::JSON
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue