Jelajahi Sumber

luci-app-ssr-plus: fix parsing filter keyword

MyFlavor 3 tahun lalu
induk
melakukan
8a30e893c4

+ 2 - 2
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