소스 검색

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

MyFlavor 3 년 전
부모
커밋
8a30e893c4
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      luci-app-ssr-plus/root/usr/share/shadowsocksr/subscribe.lua

+ 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