diff --git a/src/api/dns.cpp b/src/api/dns.cpp index 2c85028f..5f8b153a 100644 --- a/src/api/dns.cpp +++ b/src/api/dns.cpp @@ -27,6 +27,7 @@ #include "api/ip.hpp" #include "utils.hpp" #include "net.hpp" +#include "input.hpp" #include @@ -1034,6 +1035,7 @@ template <> void ClassDef::init() { DNS::resolve( hostname->str(), [=](Array *results) { + InputContext ic; settler->resolve(results); settler->release(); }