Commit c7569f94 authored by Marek Vavruša's avatar Marek Vavruša

daemon: fixed default confval

parent 8b0937d2
......@@ -49,7 +49,7 @@ setmetatable(net, {
-- `modules.<name> = <config>`
setmetatable(modules, {
__newindex = function (t,k,v)
if type(k) == 'number' then k = v end
if type(k) == 'number' then k = v v = nil end
if not rawget(_G, k) then
modules.load(k)
k = string.match(k, '%w+')
......@@ -191,4 +191,4 @@ function table_print (tt, indent, done)
result = result .. tostring(tt) .. "\n"
end
return result
end
\ No newline at end of file
end
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment