aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'plugins')
-rw-r--r--plugins/mod_admin_shell.lua7
1 files changed, 1 insertions, 6 deletions
diff --git a/plugins/mod_admin_shell.lua b/plugins/mod_admin_shell.lua
index abfade16..ac7ad58a 100644
--- a/plugins/mod_admin_shell.lua
+++ b/plugins/mod_admin_shell.lua
@@ -1369,12 +1369,7 @@ end
function def_env.dns:lookup(name, typ, class)
local resolver = get_resolver(self.session);
- local ret, err = async.wait_for(resolver:lookup_promise(name, typ, class));
- if ret then
- return true, ret;
- elseif err then
- return false, err;
- end
+ return resolver:lookup_promise(name, typ, class)
end
function def_env.dns:addnameserver(...)