Skip to content
Snippets Groups Projects
Verified Commit fe3f93d6 authored by Lukas Jezek's avatar Lukas Jezek Committed by Petr Špaček
Browse files

daemon/lua: add kluautil.lua file for helpers functions

parent 6004ef8c
Branches
Tags
1 merge request!894replace lua-socket depedency with lua-http
-- Get length of table
function kr_table_len (t)
local len = 0
for _ in pairs(t) do
len = len + 1
end
return len
end
......@@ -34,6 +34,7 @@ lua_src = [
sandbox,
trust_anchors,
files('zonefile.lua'),
files('kluautil.lua'),
]
# install daemon lua sources
......
......@@ -32,6 +32,8 @@ if rawget(kres, 'str2dname') ~= nil then
todname = kres.str2dname
end
-- Binding lua helper
kluautil = require('kluautil')
worker.resolve_pkt = function (pkt, options, finish, init)
options = kres.mk_qflags(options)
......
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