aboutsummaryrefslogtreecommitdiffstats
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
commit3df40be7ea0c5515d05180f7b19c0b5d8e887dab (patch)
tree612531dd33871f18d2806c71e2dbd8cf9063208b
parenta5161776319695ab00b67d421e20c2d6969def81 (diff)
downloadprosody-3df40be7ea0c5515d05180f7b19c0b5d8e887dab.tar.gz
prosody-3df40be7ea0c5515d05180f7b19c0b5d8e887dab.zip
net.dns: Preserve metatable on manual cache purge
-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