Software /
code /
prosody
Diff
net/dns.lua @ 6767:d01c29b62b16
Merge 0.10->trunk
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Thu, 09 Jul 2015 00:14:27 +0100 |
parent | 6753:33426c56f5d5 |
child | 6780:647adfd8f738 |
line wrap: on
line diff
--- a/net/dns.lua Sun Jul 05 18:00:05 2015 +0200 +++ b/net/dns.lua Thu Jul 09 00:14:27 2015 +0100 @@ -213,15 +213,6 @@ end -function resolver:new() -- - - - - - - - - - - - - - - - - - - - - resolver - local r = { active = {}, cache = {}, unsorted = {} }; - setmetatable(r, resolver); - setmetatable(r.cache, cache_metatable); - setmetatable(r.unsorted, { __mode = 'kv' }); - return r; -end - - -- packet layer -------------------------------------------------- packet layer @@ -1054,8 +1045,6 @@ function dns.resolver () -- - - - - - - - - - - - - - - - - - - - - resolver - -- this function seems to be redundant with resolver.new () - local r = { active = {}, cache = {}, unsorted = {}, wanted = {}, best_server = 1 }; setmetatable (r, resolver); setmetatable (r.cache, cache_metatable);