From c15abe3c05f741a530a3f79c2c8a79b0fe95f354 Mon Sep 17 00:00:00 2001 From: Luna Date: Tue, 6 Dec 2022 15:54:16 -0300 Subject: [PATCH] fix main script usage of ctx --- main.lua | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/main.lua b/main.lua index bf117f3..13ee4f7 100644 --- a/main.lua +++ b/main.lua @@ -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