aboutsummaryrefslogtreecommitdiffstats
path: root/net/dns.lua
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2010-07-05 12:13:55 +0100
committerMatthew Wild <mwild1@gmail.com>2010-07-05 12:13:55 +0100
commit90b0ef76c687a4c819f9487a35f5f615d2a2f7db (patch)
tree91b7864adcc55db8f016ce08f23efaf2649bdfcc /net/dns.lua
parentd2b5e885a827c7f91c1216c2603b89831bf498d0 (diff)
downloadprosody-90b0ef76c687a4c819f9487a35f5f615d2a2f7db.tar.gz
prosody-90b0ef76c687a4c819f9487a35f5f615d2a2f7db.zip
net.dns: Add dns.settimeout() to set the timeout for the default resolver
Diffstat (limited to 'net/dns.lua')
-rw-r--r--net/dns.lua4
1 files changed, 4 insertions, 0 deletions
diff --git a/net/dns.lua b/net/dns.lua
index dbb4fc49..714d6618 100644
--- a/net/dns.lua
+++ b/net/dns.lua
@@ -993,6 +993,10 @@ function dns.cancel(...) -- - - - - - - - - - - - - - - - - - - - - - cancel
return _resolver:cancel(...);
end
+function dns.settimeout(...)
+ return _resolver:settimeout(...);
+end
+
function dns.socket_wrapper_set(...) -- - - - - - - - - socket_wrapper_set
return _resolver:socket_wrapper_set(...);
end