mirror of
				https://github.com/kenzok8/openwrt-packages.git
				synced 2025-11-03 08:28:50 +08:00 
			
		
		
		
	update 2022-12-18 20:13:42
This commit is contained in:
		@ -17,11 +17,11 @@ C=$(uci -q get bypass.@global[0].run_mode)
 | 
			
		||||
mkdir -p $T_FILE 2>/dev/null
 | 
			
		||||
if [ "$C" = router ];then
 | 
			
		||||
	if [ ! -f $T_FILE/china.txt ];then
 | 
			
		||||
		while ! (curl -kLfsm 3 -o /tmp/china.txt https://supes.top/bypass/all_cn.txt || curl -kLfsm 5 -o /tmp/china.txt https://cdn.jsdelivr.net/gh/kiddin9/china_ip_list@main/china_ip_list.txt);do
 | 
			
		||||
		while ! (curl -kLfsm 3 -o /tmp/china.txt http://static.supes.top/bypass/all_cn.txt || curl -kLfsm 5 -o /tmp/china.txt https://cdn.jsdelivr.net/gh/kiddin9/china_ip_list@main/china_ip_list.txt);do
 | 
			
		||||
			sleep 1
 | 
			
		||||
		done
 | 
			
		||||
	else
 | 
			
		||||
		curl -kLfsm 3 -o /tmp/china.txt https://supes.top/bypass/all_cn.txt || curl -kLfsm 5 -o /tmp/china.txt https://cdn.jsdelivr.net/gh/kiddin9/china_ip_list@main/china_ip_list.txt
 | 
			
		||||
		curl -kLfsm 3 -o /tmp/china.txt http://static.supes.top/bypass/all_cn.txt || curl -kLfsm 5 -o /tmp/china.txt https://cdn.jsdelivr.net/gh/kiddin9/china_ip_list@main/china_ip_list.txt
 | 
			
		||||
	fi
 | 
			
		||||
	[[ -f /tmp/china.txt && $? == 0 ]] && {
 | 
			
		||||
	if ! cmp -s /tmp/china.txt $T_FILE/china.txt;then
 | 
			
		||||
@ -32,11 +32,11 @@ if [ "$C" = router ];then
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	if [ ! -f $T_FILE/china_v6.txt ];then
 | 
			
		||||
		while ! (curl -kLfsm 3 -o /tmp/china_v6.txt https://ispip.clang.cn/all_cn_ipv6.txt || curl -kLfsm 3 -o /tmp/china_v6.txt https://supes.top/bypass/all_cn_ipv6.txt);do
 | 
			
		||||
		while ! (curl -kLfsm 3 -o /tmp/china_v6.txt https://ispip.clang.cn/all_cn_ipv6.txt || curl -kLfsm 3 -o /tmp/china_v6.txt http://static.supes.top/bypass/all_cn_ipv6.txt);do
 | 
			
		||||
			sleep 1
 | 
			
		||||
		done
 | 
			
		||||
	elif [ $A = N ];then
 | 
			
		||||
		curl -kLfsm 3 -o /tmp/china_v6.txt https://ispip.clang.cn/all_cn_ipv6.txt || curl -kLfsm 3 -o /tmp/china_v6.txt https://supes.top/bypass/all_cn_ipv6.txt
 | 
			
		||||
		curl -kLfsm 3 -o /tmp/china_v6.txt https://ispip.clang.cn/all_cn_ipv6.txt || curl -kLfsm 3 -o /tmp/china_v6.txt http://static.supes.top/bypass/all_cn_ipv6.txt
 | 
			
		||||
	fi
 | 
			
		||||
	[[ -f /tmp/china_v6.txt && $? == 0 ]] && {
 | 
			
		||||
	if ! cmp -s /tmp/china_v6.txt $T_FILE/china_v6.txt;then
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user