aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2011-10-19 16:21:56 -0400
committerMatthew Wild <mwild1@gmail.com>2011-10-19 16:21:56 -0400
commit97a0b9f7add62ba930172193cdc2cc504e445422 (patch)
tree612531dd33871f18d2806c71e2dbd8cf9063208b /net
parenta8fc120451d3bc0cef65e8576a2fa2ea8c5d5427 (diff)
downloadprosody-97a0b9f7add62ba930172193cdc2cc504e445422.tar.gz
prosody-97a0b9f7add62ba930172193cdc2cc504e445422.zip
net.dns: Preserve metatable on manual cache purge
Diffstat (limited to 'net')
-rw-r--r--net/dns.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/dns.lua b/net/dns.lua
index 7bf5653b..8f428476 100644
--- a/net/dns.lua
+++ b/net/dns.lua
@@ -705,7 +705,7 @@ function resolver:purge(soft) -- - - - - - - - - - - - - - - - - - - purge
end
end
end
- else self.cache = {}; end
+ else self.cache = setmetatable({}, cache_metatable); end
end