From ee8aaa4e7e9c112805cd75d124c38ec3209e85c0 Mon Sep 17 00:00:00 2001 From: thelittlefireman Date: Sun, 11 Apr 2021 15:45:46 +0200 Subject: [PATCH] fix lua crash 2 --- confs/site/main-lua.conf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/confs/site/main-lua.conf b/confs/site/main-lua.conf index f590f95..ceea8e3 100644 --- a/confs/site/main-lua.conf +++ b/confs/site/main-lua.conf @@ -73,7 +73,7 @@ for k, v in pairs(whitelist_uri) do ngx.log(ngx.WARN, "[WHITELIST] URI " .. v .. " is whitelisted") ngx.exit(ngx.OK) end -done +end -- check if it's certbot if use_lets_encrypt and string.match(ngx.var.request_uri, "^/.well-known/acme-challenge/") then @@ -97,7 +97,7 @@ end -- check if user-agent is allowed if use_user_agent and ngx.var.bad_user_agent == "yes" then local block = false - for k, v in pairs(whitelist_user_agent) then + for k, v in pairs(whitelist_user_agent) do if string.match(ngx.var.http_user_agent, v) then ngx.log(ngx.WARN, "[ALLOW] User-Agent " .. ngx.var.http_user_agent .. " is whitelisted") block = false