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