Skip to content

Commit

Permalink
[fix] DNS.resolve() should resolve in an InputContext
Browse files Browse the repository at this point in the history
  • Loading branch information
pajama-coder committed Aug 2, 2024
1 parent 41b4170 commit 084f958
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/api/dns.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
#include "api/ip.hpp"
#include "utils.hpp"
#include "net.hpp"
#include "input.hpp"

#include <cstring>

Expand Down Expand Up @@ -1034,6 +1035,7 @@ template <> void ClassDef<DNS>::init() {
DNS::resolve(
hostname->str(),
[=](Array *results) {
InputContext ic;
settler->resolve(results);
settler->release();
}
Expand Down

0 comments on commit 084f958

Please sign in to comment.