luci-app-ssr-plus: fix Netflix IP bugs (#3866)

* luci-app-ssr-plus: fix Netflix IP bugs

* Update PKG_RELEASE

* Update shadowsocksr.lua

* Update status.lua

* Update shadowsocksr.lua

* Update shadowsocksr.lua
This commit is contained in:
Dekun Zhang 2020-03-18 14:48:12 +08:00 committed by GitHub
parent 47e76662a4
commit d1bcf6d42c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 4 deletions

View File

@ -2,7 +2,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=luci-app-ssr-plus
PKG_VERSION:=169
PKG_RELEASE:=8
PKG_RELEASE:=9
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)

View File

@ -117,10 +117,10 @@ elseif set == "ip_data" then
end
luci.sys.exec("rm -f /tmp/china_ssr.txt ")
elseif set == "nfip_data" then
refresh_cmd="wget-ssl --no-check-certificate https://cdn.jsdelivr.net/gh/QiuSimons/Netflix_IP/NF_only.txt -O /tmp/netflixip.list"
refresh_cmd="wget-ssl --no-check-certificate -O - https://raw.githubusercontent.com/QiuSimons/Netflix_IP/master/NF_only.txt > /tmp/netflixip.list"
sret=luci.sys.call(refresh_cmd)
icount = luci.sys.exec("cat /tmp/netflixip.list | wc -l")
if sret== 0 and tonumber(icount)>1000 then
if sret== 0 and tonumber(icount)>1 then
oldcount=luci.sys.exec("cat /etc/config/netflixip.list | wc -l")
if tonumber(icount) ~= tonumber(oldcount) then
luci.sys.exec("cp -f /tmp/netflixip.list /etc/config/netflixip.list")

View File

@ -53,7 +53,7 @@ ip_count = sys.exec("cat /etc/china_ssr.txt | wc -l")
end
if nixio.fs.access("/etc/config/netflixip.list") then
ip_count = sys.exec("cat /etc/config/netflixip.list | wc -l")
nfip_count = sys.exec("cat /etc/config/netflixip.list | wc -l")
end
local icount=sys.exec("busybox ps -w | grep ssr-reudp |grep -v grep| wc -l")