mirror of
https://github.com/coolsnowwolf/lede.git
synced 2025-07-19 22:16:59 +08:00
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:
parent
47e76662a4
commit
d1bcf6d42c
@ -2,7 +2,7 @@ include $(TOPDIR)/rules.mk
|
|||||||
|
|
||||||
PKG_NAME:=luci-app-ssr-plus
|
PKG_NAME:=luci-app-ssr-plus
|
||||||
PKG_VERSION:=169
|
PKG_VERSION:=169
|
||||||
PKG_RELEASE:=8
|
PKG_RELEASE:=9
|
||||||
|
|
||||||
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)
|
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)
|
||||||
|
|
||||||
|
@ -117,10 +117,10 @@ elseif set == "ip_data" then
|
|||||||
end
|
end
|
||||||
luci.sys.exec("rm -f /tmp/china_ssr.txt ")
|
luci.sys.exec("rm -f /tmp/china_ssr.txt ")
|
||||||
elseif set == "nfip_data" then
|
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)
|
sret=luci.sys.call(refresh_cmd)
|
||||||
icount = luci.sys.exec("cat /tmp/netflixip.list | wc -l")
|
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")
|
oldcount=luci.sys.exec("cat /etc/config/netflixip.list | wc -l")
|
||||||
if tonumber(icount) ~= tonumber(oldcount) then
|
if tonumber(icount) ~= tonumber(oldcount) then
|
||||||
luci.sys.exec("cp -f /tmp/netflixip.list /etc/config/netflixip.list")
|
luci.sys.exec("cp -f /tmp/netflixip.list /etc/config/netflixip.list")
|
||||||
|
@ -53,7 +53,7 @@ ip_count = sys.exec("cat /etc/china_ssr.txt | wc -l")
|
|||||||
end
|
end
|
||||||
|
|
||||||
if nixio.fs.access("/etc/config/netflixip.list") then
|
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
|
end
|
||||||
|
|
||||||
local icount=sys.exec("busybox ps -w | grep ssr-reudp |grep -v grep| wc -l")
|
local icount=sys.exec("busybox ps -w | grep ssr-reudp |grep -v grep| wc -l")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user