update 2022-12-09 23:36:54
This commit is contained in:
parent
22ec840ed5
commit
84d58d3068
|
@ -10,7 +10,7 @@ PKG_NAME:=luci-app-cloudflarespeedtest
|
||||||
LUCI_TITLE:=LuCI support for Cloudflares Speed Test
|
LUCI_TITLE:=LuCI support for Cloudflares Speed Test
|
||||||
LUCI_DEPENDS:=+cdnspeedtest +openssl-util +curl
|
LUCI_DEPENDS:=+cdnspeedtest +openssl-util +curl
|
||||||
LUCI_PKGARCH:=all
|
LUCI_PKGARCH:=all
|
||||||
PKG_VERSION:=1.4.7
|
PKG_VERSION:=1.4.8
|
||||||
PKG_RELEASE:=0
|
PKG_RELEASE:=0
|
||||||
PKG_LICENSE:=AGPL-3.0
|
PKG_LICENSE:=AGPL-3.0
|
||||||
PKG_MAINTAINER:=mingxiaoyu <fengying0347@163.com>
|
PKG_MAINTAINER:=mingxiaoyu <fengying0347@163.com>
|
||||||
|
|
|
@ -45,7 +45,7 @@ function speed_test(){
|
||||||
command="/usr/bin/cdnspeedtest -sl $((speed*125/1000)) -url ${custome_url} -o ${IP_FILE}"
|
command="/usr/bin/cdnspeedtest -sl $((speed*125/1000)) -url ${custome_url} -o ${IP_FILE}"
|
||||||
|
|
||||||
if [ $ipv6_enabled -eq "1" ] ;then
|
if [ $ipv6_enabled -eq "1" ] ;then
|
||||||
command="${command} -f ${IPV6_TXT} -ipv6"
|
command="${command} -f ${IPV6_TXT}"
|
||||||
else
|
else
|
||||||
command="${command} -f ${IPV4_TXT}"
|
command="${command} -f ${IPV4_TXT}"
|
||||||
fi
|
fi
|
||||||
|
@ -140,8 +140,9 @@ function ip_replace(){
|
||||||
|
|
||||||
# 获取最快 IP(从 result.csv 结果文件中获取第一个 IP)
|
# 获取最快 IP(从 result.csv 结果文件中获取第一个 IP)
|
||||||
bestip=$(sed -n "2,1p" $IP_FILE | awk -F, '{print $1}')
|
bestip=$(sed -n "2,1p" $IP_FILE | awk -F, '{print $1}')
|
||||||
[[ -z "${bestip}" ]] && echo "CloudflareST 测速结果 IP 数量为 0,跳过下面步骤..." && exit 0
|
if [[ -z "${bestip}" ]]; then
|
||||||
|
echolog "CloudflareST 测速结果 IP 数量为 0,跳过下面步骤..."
|
||||||
|
else
|
||||||
alidns_ip
|
alidns_ip
|
||||||
ssr_best_ip
|
ssr_best_ip
|
||||||
vssr_best_ip
|
vssr_best_ip
|
||||||
|
@ -150,6 +151,7 @@ function ip_replace(){
|
||||||
passwall2_best_ip
|
passwall2_best_ip
|
||||||
restart_app
|
restart_app
|
||||||
host_ip
|
host_ip
|
||||||
|
if
|
||||||
}
|
}
|
||||||
|
|
||||||
function passwall_best_ip(){
|
function passwall_best_ip(){
|
||||||
|
|
Loading…
Reference in New Issue