From 90b0ef76c687a4c819f9487a35f5f615d2a2f7db Mon Sep 17 00:00:00 2001 From: Matthew Wild Date: Mon, 5 Jul 2010 12:13:55 +0100 Subject: net.dns: Add dns.settimeout() to set the timeout for the default resolver --- net/dns.lua | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'net') 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 -- cgit v1.2.3