mirror of
https://github.com/monlor/MIXBOX-ARCHIVE.git
synced 2026-03-10 23:41:27 +00:00
修复一些下载源失效的问题
This commit is contained in:
@@ -5,5 +5,5 @@ supports="linux_aarch64,linux_arm,linux_mips,linux_x86_64"
|
||||
openport="1"
|
||||
backupfiles="config/ssserver.conf,config/sscontrol.conf,config/customize_black.conf,config/customize_white.conf"
|
||||
appinfo="最好的翻墙工具,没有之一,还可以加速国内外游戏"
|
||||
newinfo="更新v2ray配置生成脚本"
|
||||
version="0.1.10"
|
||||
newinfo="现在更新v2ray会测试二进制程序,防止软件源失效更新到错误的程序"
|
||||
version="0.1.11"
|
||||
|
||||
@@ -19,10 +19,16 @@ get_v2ray_bin() {
|
||||
logsh "【$service】" "检测v2ray版本,本地版本:$result2,在线版本:$result1"
|
||||
if [ "$result1" != "$result2" ]; then
|
||||
logsh "【$service】" "版本不一致,正在更新..."
|
||||
wgetsh ${mbroot}/apps/${appname}/bin/v2ray $mburl/appsbin/v2ray-bin/$model/v2ray
|
||||
wgetsh ${mbroot}/apps/${appname}/bin/v2ctl $mburl/appsbin/v2ray-bin/$model/v2ctl
|
||||
chmod +x ${mbroot}/apps/${appname}/bin/v2ray
|
||||
chmod +x ${mbroot}/apps/${appname}/bin/v2ctl
|
||||
wgetsh ${mbtmp}/v2ray $mburl/appsbin/v2ray-bin/$model/v2ray
|
||||
wgetsh ${mbtmp}/v2ctl $mburl/appsbin/v2ray-bin/$model/v2ctl
|
||||
chmod +x ${mbtmp}/v2ray
|
||||
chmod +x ${mbtmp}/v2ctl
|
||||
if ${mbtmp}/v2ray -version &> /dev/null; then
|
||||
mv -f ${mbtmp}/v2ray ${mbroot}/apps/${appname}/bin/v2ray
|
||||
mv -f ${mbtmp}/v2ctl ${mbroot}/apps/${appname}/bin/v2ctl
|
||||
else
|
||||
echo "测试v2ray程序失败!跳过更新..."
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user