From 97a0b9f7add62ba930172193cdc2cc504e445422 Mon Sep 17 00:00:00 2001 From: Matthew Wild Date: Wed, 19 Oct 2011 16:21:56 -0400 Subject: net.dns: Preserve metatable on manual cache purge --- net/dns.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.3