fix main script usage of ctx

This commit is contained in:
Luna 2022-12-06 15:54:16 -03:00
parent 5d21c975ea
commit c15abe3c05
1 changed files with 6 additions and 2 deletions

View File

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