From: Marek VavruĊĦa Date: Thu, 24 Sep 2015 12:12:47 +0000 (+0200) Subject: daemon/config: cache open by default (even if not in config) X-Git-Tag: v1.0.0-beta1~53^2~22 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b37bb17f7487efa2b26a8411d1bdd7954d310488;p=thirdparty%2Fknot-resolver.git daemon/config: cache open by default (even if not in config) before the cache was disabled by default, but this has led to many user errors (mine as well). this enables it by default (which is what most people want anyway) --- diff --git a/daemon/lua/config.lua b/daemon/lua/config.lua index e23e0d3d6..028b88bb4 100644 --- a/daemon/lua/config.lua +++ b/daemon/lua/config.lua @@ -1,5 +1,3 @@ --- Default configuration -cache.open(10*MB) -- Listen on localhost if not next(net.list()) then if not pcall(net.listen, '127.0.0.1') then diff --git a/daemon/lua/sandbox.lua b/daemon/lua/sandbox.lua index e32c0762b..048814133 100644 --- a/daemon/lua/sandbox.lua +++ b/daemon/lua/sandbox.lua @@ -66,6 +66,8 @@ setmetatable(cache, { else rawset(t, k, v) end end }) +-- Defaults +cache.size = 10 * MB -- Syntactic sugar for TA store trust_anchors = kres.trust_anchors