refactor(lisp/dns): Return dns-answer from query functions
This commit is contained in:
parent
ca1217655d
commit
253a166bbc
2 changed files with 10 additions and 2 deletions
|
|
@ -40,7 +40,8 @@
|
|||
("name" . ,name)
|
||||
("ct" . "application/dns-message")))
|
||||
(if (= 200 status)
|
||||
(read-binary 'dns-message (flexi-streams:make-in-memory-input-stream body))
|
||||
(dns-message-answer
|
||||
(read-binary 'dns-message (flexi-streams:make-in-memory-input-stream body)))
|
||||
|
||||
(restart-case (error 'doh-error
|
||||
:query-name name
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue