Fix Zone display while resetting the zone.
This commit is contained in:
parent
49adaba0aa
commit
4235d33fe0
1 changed files with 3 additions and 1 deletions
|
|
@ -555,7 +555,9 @@ handleQuery = case _ of
|
|||
H.modify_ _ { _rr_form { _zonefile = Just response.zonefile } }
|
||||
(DNSManager.MkZone response) -> do
|
||||
case response.zone.delegation of
|
||||
Nothing -> add_entries response.zone.resources
|
||||
Nothing -> do
|
||||
H.modify_ _ { delegation = Nothing, _resources = [] }
|
||||
add_entries response.zone.resources
|
||||
Just _ -> H.modify_ _ { delegation = response.zone.delegation }
|
||||
(DNSManager.MkDomainDelegated response) -> do
|
||||
H.modify_ _ { delegation = Just { nameserver1: response.nameserver1, nameserver2: response.nameserver2} }
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue