fix main script usage of ctx

This commit is contained in:
Luna 2022-12-06 15:54:16 -03:00
parent 5d21c975ea
commit c15abe3c05

View file

@ -8,8 +8,12 @@ local CONFIG_PATH = ".;/etc/aproxy"
-- local config = loadConfig() -- local config = loadConfig()
local ctx = require('ctx') local ctx = require('ctx')
ctx.setWantedScripts({
ctx:setWantedScripts({
['scripts.webfinger_allowlist'] = {accounts = {"example@example.com"}} ['scripts.webfinger_allowlist'] = {accounts = {"example@example.com"}}
}) })
ctx:loadChain()
return ctx:onRequest return function()
ctx:onRequest()
end