From ec8c9d353c9851b9e0c41de252048dcec557a685 Mon Sep 17 00:00:00 2001 From: moicen Date: Sat, 20 May 2023 01:22:55 +0800 Subject: [PATCH] fix parameter issue --- scripts/lib/upt.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/lib/upt.lua b/scripts/lib/upt.lua index 872cac1..aaf3cf6 100644 --- a/scripts/lib/upt.lua +++ b/scripts/lib/upt.lua @@ -19,7 +19,7 @@ function _M.upt(url) if string.find(hostname, "moicen.com") then ngx.log(ngx.INFO, 'match moicen.com: ' .. ngx.var.upt_moicen_secret) secret = ngx.var.upt_moicen_secret - elseif string.find(hostname, "alchemy-studio.cn", true) then + elseif string.find(hostname, "alchemy-studio.cn", 1, true) then ngx.log(ngx.INFO, 'match alchemy: ' .. ngx.var.upt_alchemy_secret) secret = ngx.var.upt_alchemy_secret elseif string.find(hostname, "huiwings.cn") then