From 8a30e893c4a47bdca9b1fdb8401d73521e68dda3 Mon Sep 17 00:00:00 2001 From: MyFlavor <45022747+myflavor@users.noreply.github.com> Date: Thu, 16 Dec 2021 01:09:00 +0800 Subject: [PATCH] luci-app-ssr-plus: fix parsing filter keyword --- luci-app-ssr-plus/root/usr/share/shadowsocksr/subscribe.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/luci-app-ssr-plus/root/usr/share/shadowsocksr/subscribe.lua b/luci-app-ssr-plus/root/usr/share/shadowsocksr/subscribe.lua index 7812af15..8a9bb018 100755 --- a/luci-app-ssr-plus/root/usr/share/shadowsocksr/subscribe.lua +++ b/luci-app-ssr-plus/root/usr/share/shadowsocksr/subscribe.lua @@ -441,7 +441,7 @@ local function check_filer(result) -- 检查是否存在过滤关键词 for i, v in pairs(filter_word) do - if result.alias:find(v) then + if tostring(result.alias):find(v) then filter_result = true end end @@ -449,7 +449,7 @@ local function check_filer(result) -- 检查是否打开了保留关键词检查,并且进行过滤 if check_save == true then for i, v in pairs(save_word) do - if result.alias:find(v) then + if tostring(result.alias):find(v) then save_result = false end end