diff options
author | Waqas Hussain <waqas20@gmail.com> | 2009-11-02 00:52:35 +0500 |
---|---|---|
committer | Waqas Hussain <waqas20@gmail.com> | 2009-11-02 00:52:35 +0500 |
commit | c129a0b2b9d2b87b49bacfc5dfafe9894ff3fdd4 (patch) | |
tree | 4559d7db130ecfff6adf3452a7dd3979f59dedc5 /net | |
parent | c19649f0696ec88dae15115a64193517ca97a63f (diff) | |
download | prosody-c129a0b2b9d2b87b49bacfc5dfafe9894ff3fdd4.tar.gz prosody-c129a0b2b9d2b87b49bacfc5dfafe9894ff3fdd4.zip |
net.dns: Initialize default resolver on module load (instead of on first use).
Diffstat (limited to 'net')
-rw-r--r-- | net/dns.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/dns.lua b/net/dns.lua index 7b596f67..5abc8afc 100644 --- a/net/dns.lua +++ b/net/dns.lua @@ -889,7 +889,6 @@ function resolver.print (response) -- - - - - - - - - - - - - resolver.print local function resolve (func, ...) -- - - - - - - - - - - - - - resolver_get - dns._resolver = dns._resolver or dns.resolver () return func (dns._resolver, ...) end @@ -930,5 +929,6 @@ function dns.cancel(...) -- - - - - - - - - - - - - - - - - - - - - - cancel function dns:socket_wrapper_set (...) -- - - - - - - - - socket_wrapper_set return resolve (resolver.socket_wrapper_set, ...) end +dns._resolver = dns.resolver () return dns |