aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2014-07-25 13:59:17 +0200
committerKim Alvefur <zash@zash.se>2014-07-25 13:59:17 +0200
commitb9134d61df1554dbff3ab62391abe88e5da02c20 (patch)
treeec39fc893f011cd3a0eb21fdb380ef6af221a32f /plugins
parentb3fd3b1c7be1a187655658cdf60f76a5cbb2464a (diff)
downloadprosody-b9134d61df1554dbff3ab62391abe88e5da02c20.tar.gz
prosody-b9134d61df1554dbff3ab62391abe88e5da02c20.zip
mod_admin_telnet: Fix dns:(add,set)nameservers()
Diffstat (limited to 'plugins')
-rw-r--r--plugins/mod_admin_telnet.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/mod_admin_telnet.lua b/plugins/mod_admin_telnet.lua
index 6f02f030..671b6d89 100644
--- a/plugins/mod_admin_telnet.lua
+++ b/plugins/mod_admin_telnet.lua
@@ -1058,12 +1058,12 @@ function def_env.dns:lookup(name, typ, class)
end
function def_env.dns:addnameserver(...)
- dns.addnameserver(...)
+ dns._resolver:addnameserver(...)
return true
end
function def_env.dns:setnameserver(...)
- dns.setnameserver(...)
+ dns._resolver:setnameserver(...)
return true
end