Skip to content

Commit bfa7d0a

Browse files
author
cary-sas
committed
v4.34.1
1 parent d468223 commit bfa7d0a

File tree

3 files changed

+11
-3
lines changed

3 files changed

+11
-3
lines changed

380_armv5_packge/4.34.1/md5sum.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
14029587a6c6b1413a5f5afa7988c462
1+
20ff55959c0b3d627924fb41859172d5
8 Bytes
Binary file not shown.

shadowsocks/scripts/ss_update.sh

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,14 @@ alias echo_date='echo 【$(TZ=UTC-8 date -R +%Y年%m月%d日\ %X)】:'
88
#main_url="https://raw.githubusercontent.com/hq450/fancyss/master/fancyss_arm"
99
main_url="https://raw.githubusercontent.com/cary-sas/v2ray_bin/main/380_armv5_packge"
1010
backup_url=""
11+
socksopen_b=`netstat -nlp|grep -w 23456|grep -E "local|v2ray|xray"`
12+
if [ -n "$socksopen_b" ] && [ "$ss_basic_online_links_goss" == "1" ];then
13+
echo_date "代理有开启,将使用代理网络..."
14+
alias curlxx='curl --connect-timeout 8 --socks5-hostname 127.0.0.1:23456 '
15+
else
16+
echo_date "使用常规网络下载..."
17+
alias curlxx='curl --connect-timeout 8 '
18+
fi
1119

1220
install_ss(){
1321
echo_date 开始解压压缩包...
@@ -22,7 +30,7 @@ update_ss(){
2230
echo_date 更新过程中请不要刷新本页面或者关闭路由等,不然可能导致问题!
2331
echo_date 开启SS检查更新:使用主服务器:github
2432
echo_date 检测主服务器在线版本号...
25-
ss_basic_version_web1=`curl --connect-timeout 5 -s "$main_url"/latest.txt | sed -n 1p`
33+
ss_basic_version_web1=`curlxx "$main_url"/latest.txt | sed -n 1p`
2634
if [ -n "$ss_basic_version_web1" ];then
2735
echo_date 检测到主服务器在线版本号:$ss_basic_version_web1
2836
dbus set ss_basic_version_web=$ss_basic_version_web1
@@ -32,7 +40,7 @@ update_ss(){
3240
md5_web1=`curl -s "$main_url"/$ss_basic_version_web1/md5sum.txt | sed -n 1p`
3341
echo_date 开启下载进程,从主服务器上下载更新包...
3442
#wget --no-check-certificate --timeout=5 "$main_url"/$ss_basic_version_web1/shadowsocks.tar.gz
35-
curl -L -H "Cache-Control: no-cache" -o /tmp/shadowsocks.tar.gz "$main_url"/$ss_basic_version_web1/shadowsocks.tar.gz
43+
curlxx -o /tmp/shadowsocks.tar.gz "$main_url"/$ss_basic_version_web1/shadowsocks.tar.gz
3644
md5sum_gz=`md5sum /tmp/shadowsocks.tar.gz | sed 's/ /\n/g'| sed -n 1p`
3745
if [ "$md5sum_gz" != "$md5_web1" ]; then
3846
echo_date 更新包md5校验不一致!估计是下载的时候出了什么状况,请等待一会儿再试...

0 commit comments

Comments
 (0)