Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

添加定时更新路由规则actions,修改使用curl访问github链接 #32801

Open
wants to merge 531 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
531 commits
Select commit Hold shift + click to select a range
85338da
Auto update rules by github actions.
github-actions[bot] Mar 25, 2023
44b0737
Auto update rules by github actions.
github-actions[bot] Mar 27, 2023
1be0a07
Auto update rules by github actions.
github-actions[bot] Mar 29, 2023
05a7b9b
Auto update rules by github actions.
github-actions[bot] Apr 1, 2023
91dc5de
Auto update rules by github actions.
github-actions[bot] Apr 3, 2023
e1fc37a
Auto update rules by github actions.
github-actions[bot] Apr 5, 2023
5d54016
Auto update rules by github actions.
github-actions[bot] Apr 8, 2023
87d8965
Auto update rules by github actions.
github-actions[bot] Apr 10, 2023
53a88f9
Auto update rules by github actions.
github-actions[bot] Apr 12, 2023
e991a86
Auto update rules by github actions.
github-actions[bot] Apr 15, 2023
0d3902b
Auto update rules by github actions.
github-actions[bot] Apr 17, 2023
b5db6ca
Auto update rules by github actions.
github-actions[bot] Apr 19, 2023
9321218
Auto update rules by github actions.
github-actions[bot] Apr 22, 2023
9b12e16
Auto update rules by github actions.
github-actions[bot] Apr 24, 2023
d142dd0
Auto update rules by github actions.
github-actions[bot] Apr 26, 2023
10c873a
Auto update rules by github actions.
github-actions[bot] Apr 29, 2023
78cef53
Auto update rules by github actions.
github-actions[bot] May 1, 2023
882c440
Auto update rules by github actions.
github-actions[bot] May 3, 2023
355a635
Auto update rules by github actions.
github-actions[bot] May 6, 2023
3ab1365
Auto update rules by github actions.
github-actions[bot] May 8, 2023
f3f3fba
Auto update rules by github actions.
github-actions[bot] May 10, 2023
87c6fea
Auto update rules by github actions.
github-actions[bot] May 13, 2023
6652c07
Auto update rules by github actions.
github-actions[bot] May 15, 2023
8c3863e
Auto update rules by github actions.
github-actions[bot] May 17, 2023
a2f5269
Auto update rules by github actions.
github-actions[bot] May 20, 2023
28cbe60
Auto update rules by github actions.
github-actions[bot] May 22, 2023
ddbb2a2
Auto update rules by github actions.
github-actions[bot] May 24, 2023
ddeb4a4
Auto update rules by github actions.
github-actions[bot] May 27, 2023
6f0dcb0
Auto update rules by github actions.
github-actions[bot] May 29, 2023
f16b4ba
Auto update rules by github actions.
github-actions[bot] May 31, 2023
b6f56f1
Auto update rules by github actions.
github-actions[bot] Jun 3, 2023
a212d90
Auto update rules by github actions.
github-actions[bot] Jun 5, 2023
9ef4406
Auto update rules by github actions.
github-actions[bot] Jun 7, 2023
bf0c7b7
Auto update rules by github actions.
github-actions[bot] Jun 10, 2023
47201a4
Auto update rules by github actions.
github-actions[bot] Jun 12, 2023
9b2bfc0
Auto update rules by github actions.
github-actions[bot] Jun 14, 2023
497f8ce
Auto update rules by github actions.
github-actions[bot] Jun 17, 2023
a3fe307
Auto update rules by github actions.
github-actions[bot] Jun 19, 2023
c0504c6
Auto update rules by github actions.
github-actions[bot] Jun 21, 2023
aefdd6f
Auto update rules by github actions.
github-actions[bot] Jun 24, 2023
b86d05f
Auto update rules by github actions.
github-actions[bot] Jun 26, 2023
707c485
Auto update rules by github actions.
github-actions[bot] Jun 28, 2023
162864f
Auto update rules by github actions.
github-actions[bot] Jul 1, 2023
391171b
Auto update rules by github actions.
github-actions[bot] Jul 3, 2023
8fe9e7c
Auto update rules by github actions.
github-actions[bot] Jul 5, 2023
d89c24a
Auto update rules by github actions.
github-actions[bot] Jul 8, 2023
bd788d7
Auto update rules by github actions.
github-actions[bot] Jul 10, 2023
2b56087
Auto update rules by github actions.
github-actions[bot] Jul 12, 2023
a568ec8
Auto update rules by github actions.
github-actions[bot] Jul 15, 2023
255df63
Auto update rules by github actions.
github-actions[bot] Jul 17, 2023
e8188dd
Auto update rules by github actions.
github-actions[bot] Jul 19, 2023
3498adc
Auto update rules by github actions.
github-actions[bot] Jul 22, 2023
5754d1f
Auto update rules by github actions.
github-actions[bot] Jul 24, 2023
94667ab
Auto update rules by github actions.
github-actions[bot] Jul 26, 2023
b51dcec
Auto update rules by github actions.
github-actions[bot] Jul 29, 2023
502c943
Auto update rules by github actions.
github-actions[bot] Jul 31, 2023
b1c4c30
Auto update rules by github actions.
github-actions[bot] Aug 2, 2023
85be676
Auto update rules by github actions.
github-actions[bot] Aug 5, 2023
f4c1b5d
Auto update rules by github actions.
github-actions[bot] Aug 7, 2023
c7ffb4c
Auto update rules by github actions.
github-actions[bot] Aug 9, 2023
93ef076
Auto update rules by github actions.
github-actions[bot] Aug 12, 2023
4246e26
Auto update rules by github actions.
github-actions[bot] Aug 14, 2023
1447598
Auto update rules by github actions.
github-actions[bot] Aug 16, 2023
33e5196
Auto update rules by github actions.
github-actions[bot] Aug 19, 2023
1bd2697
Auto update rules by github actions.
github-actions[bot] Aug 21, 2023
6adbf46
Auto update rules by github actions.
github-actions[bot] Aug 23, 2023
52a5d56
Auto update rules by github actions.
github-actions[bot] Aug 26, 2023
137e23a
Auto update rules by github actions.
github-actions[bot] Aug 28, 2023
1e0b132
Auto update rules by github actions.
github-actions[bot] Aug 30, 2023
9f3c39b
Auto update rules by github actions.
github-actions[bot] Sep 2, 2023
652afa3
Auto update rules by github actions.
github-actions[bot] Sep 4, 2023
6e79a12
Auto update rules by github actions.
github-actions[bot] Sep 6, 2023
4cb831e
Auto update rules by github actions.
github-actions[bot] Sep 9, 2023
3346db2
Auto update rules by github actions.
github-actions[bot] Sep 11, 2023
dbf61e8
Auto update rules by github actions.
github-actions[bot] Sep 13, 2023
5c684fa
Auto update rules by github actions.
github-actions[bot] Sep 16, 2023
dc347af
Auto update rules by github actions.
github-actions[bot] Sep 18, 2023
153213b
Auto update rules by github actions.
github-actions[bot] Sep 20, 2023
1dcc2d8
Auto update rules by github actions.
github-actions[bot] Sep 23, 2023
a484487
Auto update rules by github actions.
github-actions[bot] Sep 25, 2023
f053b04
Auto update rules by github actions.
github-actions[bot] Sep 27, 2023
44e5e86
Auto update rules by github actions.
github-actions[bot] Sep 30, 2023
d6a28a3
Auto update rules by github actions.
github-actions[bot] Oct 2, 2023
d67d9c6
Auto update rules by github actions.
github-actions[bot] Oct 4, 2023
a1e61f1
Auto update rules by github actions.
github-actions[bot] Oct 7, 2023
cf31b34
Auto update rules by github actions.
github-actions[bot] Oct 9, 2023
325414e
Auto update rules by github actions.
github-actions[bot] Oct 11, 2023
468b846
Auto update rules by github actions.
github-actions[bot] Oct 14, 2023
c1be25a
Auto update rules by github actions.
github-actions[bot] Oct 16, 2023
a58f9d4
Auto update rules by github actions.
github-actions[bot] Oct 18, 2023
1296f16
Auto update rules by github actions.
github-actions[bot] Oct 21, 2023
0452794
Auto update rules by github actions.
github-actions[bot] Oct 23, 2023
61cd4dd
Auto update rules by github actions.
github-actions[bot] Oct 25, 2023
bbb0a05
Auto update rules by github actions.
github-actions[bot] Oct 28, 2023
5f6bcf9
Auto update rules by github actions.
github-actions[bot] Oct 30, 2023
277ebc5
Auto update rules by github actions.
github-actions[bot] Nov 1, 2023
1343f2c
Auto update rules by github actions.
github-actions[bot] Nov 4, 2023
d75546a
Auto update rules by github actions.
github-actions[bot] Nov 6, 2023
3a5a248
Auto update rules by github actions.
github-actions[bot] Nov 8, 2023
9f07ba1
Auto update rules by github actions.
github-actions[bot] Nov 11, 2023
5cb64c6
Auto update rules by github actions.
github-actions[bot] Nov 13, 2023
5f8d170
Auto update rules by github actions.
github-actions[bot] Nov 15, 2023
d8a9ec0
Auto update rules by github actions.
github-actions[bot] Nov 18, 2023
132b045
Auto update rules by github actions.
github-actions[bot] Nov 20, 2023
71e0450
Auto update rules by github actions.
github-actions[bot] Nov 22, 2023
c34fa90
Auto update rules by github actions.
github-actions[bot] Nov 25, 2023
aa3db22
Auto update rules by github actions.
github-actions[bot] Nov 27, 2023
df0801f
Auto update rules by github actions.
github-actions[bot] Nov 29, 2023
68ab806
Auto update rules by github actions.
github-actions[bot] Dec 2, 2023
0cd9c2d
Auto update rules by github actions.
github-actions[bot] Dec 4, 2023
54e6cac
Auto update rules by github actions.
github-actions[bot] Dec 6, 2023
c6e2db5
Auto update rules by github actions.
github-actions[bot] Dec 9, 2023
8a7f3f8
Auto update rules by github actions.
github-actions[bot] Dec 11, 2023
1a8bad0
Auto update rules by github actions.
github-actions[bot] Dec 13, 2023
de4d14e
Auto update rules by github actions.
github-actions[bot] Dec 16, 2023
41dbbba
Auto update rules by github actions.
github-actions[bot] Dec 18, 2023
dd33e70
Auto update rules by github actions.
github-actions[bot] Dec 20, 2023
2320e00
Auto update rules by github actions.
github-actions[bot] Dec 23, 2023
2c72ead
Auto update rules by github actions.
github-actions[bot] Dec 25, 2023
43a82ab
Auto update rules by github actions.
github-actions[bot] Dec 27, 2023
e6b5a9a
Auto update rules by github actions.
github-actions[bot] Dec 30, 2023
af3a3e9
Auto update rules by github actions.
github-actions[bot] Jan 1, 2024
0cdd881
Auto update rules by github actions.
github-actions[bot] Jan 3, 2024
be4f24c
Auto update rules by github actions.
github-actions[bot] Jan 6, 2024
79d58e7
Auto update rules by github actions.
github-actions[bot] Jan 8, 2024
87ab80b
Auto update rules by github actions.
github-actions[bot] Jan 10, 2024
32fc495
Auto update rules by github actions.
github-actions[bot] Jan 13, 2024
fd36f28
Auto update rules by github actions.
github-actions[bot] Jan 15, 2024
a8ce205
Auto update rules by github actions.
github-actions[bot] Jan 17, 2024
8e78c84
Auto update rules by github actions.
github-actions[bot] Jan 20, 2024
509f96b
Auto update rules by github actions.
github-actions[bot] Jan 22, 2024
bd43739
Auto update rules by github actions.
github-actions[bot] Jan 24, 2024
ff2a9d0
Auto update rules by github actions.
github-actions[bot] Jan 27, 2024
bacd3d4
Auto update rules by github actions.
github-actions[bot] Jan 29, 2024
f1359a8
Auto update rules by github actions.
github-actions[bot] Jan 31, 2024
96dcb4a
Auto update rules by github actions.
github-actions[bot] Feb 3, 2024
7732ecf
Auto update rules by github actions.
github-actions[bot] Feb 5, 2024
b81dd9a
Auto update rules by github actions.
github-actions[bot] Feb 7, 2024
346d9c1
Auto update rules by github actions.
github-actions[bot] Feb 10, 2024
034701b
Auto update rules by github actions.
github-actions[bot] Feb 12, 2024
2ab8ef6
Auto update rules by github actions.
github-actions[bot] Feb 14, 2024
b5b4b2d
Auto update rules by github actions.
github-actions[bot] Feb 17, 2024
ca1a7d0
Auto update rules by github actions.
github-actions[bot] Feb 19, 2024
7d00536
Auto update rules by github actions.
github-actions[bot] Feb 21, 2024
a43da22
Auto update rules by github actions.
github-actions[bot] Feb 24, 2024
970eda6
Auto update rules by github actions.
github-actions[bot] Feb 26, 2024
cf71f94
Auto update rules by github actions.
github-actions[bot] Feb 28, 2024
6dc922d
Auto update rules by github actions.
github-actions[bot] Mar 2, 2024
a665ab5
Auto update rules by github actions.
github-actions[bot] Mar 4, 2024
3ed0130
Auto update rules by github actions.
github-actions[bot] Mar 6, 2024
05c254d
Auto update rules by github actions.
github-actions[bot] Mar 9, 2024
9f2b923
Auto update rules by github actions.
github-actions[bot] Mar 11, 2024
e8b8690
Auto update rules by github actions.
github-actions[bot] Mar 13, 2024
f1e14e8
Auto update rules by github actions.
github-actions[bot] Mar 16, 2024
3ba2253
Auto update rules by github actions.
github-actions[bot] Mar 18, 2024
792c9e9
Auto update rules by github actions.
github-actions[bot] Mar 20, 2024
409be03
Auto update rules by github actions.
github-actions[bot] Mar 23, 2024
6fe1553
Auto update rules by github actions.
github-actions[bot] Mar 25, 2024
e643970
Auto update rules by github actions.
github-actions[bot] Mar 27, 2024
7888481
Auto update rules by github actions.
github-actions[bot] Mar 30, 2024
202e220
Auto update rules by github actions.
github-actions[bot] Apr 1, 2024
b0411ac
Auto update rules by github actions.
github-actions[bot] Apr 3, 2024
b1974c8
Auto update rules by github actions.
github-actions[bot] Apr 6, 2024
1fa6caa
Auto update rules by github actions.
github-actions[bot] Apr 8, 2024
3354c79
Auto update rules by github actions.
github-actions[bot] Apr 10, 2024
3769387
Auto update rules by github actions.
github-actions[bot] Apr 13, 2024
bb4c81b
Auto update rules by github actions.
github-actions[bot] Apr 15, 2024
6128546
Auto update rules by github actions.
github-actions[bot] Apr 17, 2024
2e67344
Auto update rules by github actions.
github-actions[bot] Apr 20, 2024
3c0d483
Auto update rules by github actions.
github-actions[bot] Apr 22, 2024
223ec99
Auto update rules by github actions.
github-actions[bot] Apr 24, 2024
7dd62eb
Auto update rules by github actions.
github-actions[bot] Apr 27, 2024
e0bd70f
Auto update rules by github actions.
github-actions[bot] Apr 29, 2024
28aec2d
Auto update rules by github actions.
github-actions[bot] May 1, 2024
837c9a2
Auto update rules by github actions.
github-actions[bot] May 4, 2024
d4d8ddd
Auto update rules by github actions.
github-actions[bot] May 6, 2024
58c7838
Auto update rules by github actions.
github-actions[bot] May 8, 2024
5ffb98d
Auto update rules by github actions.
github-actions[bot] May 11, 2024
c2b8e2c
Auto update rules by github actions.
github-actions[bot] May 13, 2024
351ae7c
Auto update rules by github actions.
github-actions[bot] May 15, 2024
ffac37b
Auto update rules by github actions.
github-actions[bot] May 18, 2024
e711a1f
Auto update rules by github actions.
github-actions[bot] May 20, 2024
4cc66f9
Auto update rules by github actions.
github-actions[bot] May 22, 2024
764a9bc
Auto update rules by github actions.
github-actions[bot] May 25, 2024
7ceeb08
Auto update rules by github actions.
github-actions[bot] May 27, 2024
c523fa8
Auto update rules by github actions.
github-actions[bot] May 29, 2024
9f64e4c
Auto update rules by github actions.
github-actions[bot] Jun 1, 2024
d253420
Auto update rules by github actions.
github-actions[bot] Jun 3, 2024
49ba41f
Auto update rules by github actions.
github-actions[bot] Jun 5, 2024
240f1d6
Auto update rules by github actions.
github-actions[bot] Jun 8, 2024
c14809d
Auto update rules by github actions.
github-actions[bot] Jun 10, 2024
61c15ce
Auto update rules by github actions.
github-actions[bot] Jun 12, 2024
2d50872
Auto update rules by github actions.
github-actions[bot] Jun 15, 2024
e6bf221
Auto update rules by github actions.
github-actions[bot] Jun 17, 2024
2b0a847
Auto update rules by github actions.
github-actions[bot] Jun 19, 2024
346d92a
Auto update rules by github actions.
github-actions[bot] Jun 22, 2024
07771cb
Auto update rules by github actions.
github-actions[bot] Jun 24, 2024
35fbca4
Auto update rules by github actions.
github-actions[bot] Jun 26, 2024
e6aceb5
Auto update rules by github actions.
github-actions[bot] Jun 29, 2024
e7f5c7d
Auto update rules by github actions.
github-actions[bot] Jul 1, 2024
0eb2864
Auto update rules by github actions.
github-actions[bot] Jul 3, 2024
d148167
Auto update rules by github actions.
github-actions[bot] Jul 6, 2024
b649723
Auto update rules by github actions.
github-actions[bot] Jul 8, 2024
3e5ddd8
Auto update rules by github actions.
github-actions[bot] Jul 10, 2024
fafde6a
Auto update rules by github actions.
github-actions[bot] Jul 13, 2024
41aaaf4
Auto update rules by github actions.
github-actions[bot] Jul 15, 2024
b7f5f83
Auto update rules by github actions.
github-actions[bot] Jul 17, 2024
5b6e49b
Auto update rules by github actions.
github-actions[bot] Jul 20, 2024
a02277b
Auto update rules by github actions.
github-actions[bot] Jul 22, 2024
0b39b75
Auto update rules by github actions.
github-actions[bot] Jul 24, 2024
cd1d0b8
Auto update rules by github actions.
github-actions[bot] Jul 27, 2024
cc98951
Auto update rules by github actions.
github-actions[bot] Jul 29, 2024
5672cbf
Auto update rules by github actions.
github-actions[bot] Jul 31, 2024
744b380
Auto update rules by github actions.
github-actions[bot] Aug 3, 2024
cb0fc75
Auto update rules by github actions.
github-actions[bot] Aug 5, 2024
a40db7e
Auto update rules by github actions.
github-actions[bot] Aug 7, 2024
9843445
Auto update rules by github actions.
github-actions[bot] Aug 10, 2024
8a62fae
Auto update rules by github actions.
github-actions[bot] Aug 12, 2024
4b9af37
Auto update rules by github actions.
github-actions[bot] Aug 14, 2024
6655692
Auto update rules by github actions.
github-actions[bot] Aug 17, 2024
ed447e9
Auto update rules by github actions.
github-actions[bot] Aug 19, 2024
0d24b03
Auto update rules by github actions.
github-actions[bot] Aug 21, 2024
2e41bc1
Auto update rules by github actions.
github-actions[bot] Aug 24, 2024
a31afa4
Auto update rules by github actions.
github-actions[bot] Aug 26, 2024
eee9a21
Auto update rules by github actions.
github-actions[bot] Aug 28, 2024
aa41a16
Auto update rules by github actions.
github-actions[bot] Aug 31, 2024
782f59a
Auto update rules by github actions.
github-actions[bot] Sep 2, 2024
82ce4cf
Auto update rules by github actions.
github-actions[bot] Sep 4, 2024
0df9bf1
Auto update rules by github actions.
github-actions[bot] Sep 7, 2024
bba7556
Auto update rules by github actions.
github-actions[bot] Sep 9, 2024
a616385
Auto update rules by github actions.
github-actions[bot] Sep 11, 2024
3124b2a
Auto update rules by github actions.
github-actions[bot] Sep 14, 2024
378e77c
Auto update rules by github actions.
github-actions[bot] Sep 16, 2024
720475e
Auto update rules by github actions.
github-actions[bot] Sep 18, 2024
d40dccc
Auto update rules by github actions.
github-actions[bot] Sep 21, 2024
23f2ab9
Auto update rules by github actions.
github-actions[bot] Sep 23, 2024
1c8eba8
Auto update rules by github actions.
github-actions[bot] Sep 25, 2024
173a627
Auto update rules by github actions.
github-actions[bot] Sep 28, 2024
a0ee287
Auto update rules by github actions.
github-actions[bot] Sep 30, 2024
6e64b93
Auto update rules by github actions.
github-actions[bot] Oct 2, 2024
c2204d3
Auto update rules by github actions.
github-actions[bot] Oct 5, 2024
94d3e23
Auto update rules by github actions.
github-actions[bot] Oct 7, 2024
92fa1bf
Auto update rules by github actions.
github-actions[bot] Oct 9, 2024
60d3ae7
Auto update rules by github actions.
github-actions[bot] Oct 12, 2024
ca70445
Auto update rules by github actions.
github-actions[bot] Oct 14, 2024
910362b
Auto update rules by github actions.
github-actions[bot] Oct 16, 2024
4f46813
Auto update rules by github actions.
github-actions[bot] Oct 19, 2024
174ae77
Auto update rules by github actions.
github-actions[bot] Oct 21, 2024
b450033
Auto update rules by github actions.
github-actions[bot] Oct 23, 2024
bf3c474
Auto update rules by github actions.
github-actions[bot] Oct 26, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 35 additions & 0 deletions .github/workflows/update_rules.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: update rules
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

workflow_dispatch:

schedule:
- cron: "0 1 * * 1,3,6"

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- name: Run update script
run: |
cd rules/auto_update
sh ./update_rules.sh
shell: bash

- name: Commit file changes
run: |
if [ -n "$(git status -s)" ]; then
git config --local user.name "github-actions[bot]"
git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com"
git add -A
git commit -m "Auto update rules by github actions." rules/*
git push
else
echo "No modifications."
fi
12 changes: 8 additions & 4 deletions fancyss_arm/shadowsocks/scripts/ss_rule_update.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ start_update(){

echo ==================================================================================================
echo_date 开始更新shadowsocks规则,请等待...
wget --no-check-certificate --timeout=8 -qO - "$url_main"/version1 > /tmp/ss_version
#wget --no-check-certificate --timeout=8 -qO - "$url_main"/version1 > /tmp/ss_version
curl --connect-timeout 8 -m 20 "$url_main"/version1 > /tmp/ss_version
if [ "$?" == "0" ]; then
echo_date 检测到在线版本文件,继续...
else
Expand Down Expand Up @@ -50,7 +51,8 @@ start_update(){
if [ "$version_gfwlist1" != "$version_gfwlist2" ];then
echo_date 检测到新版本gfwlist,开始更新...
echo_date 下载gfwlist到临时文件...
wget --no-check-certificate --timeout=8 -qO - "$url_main"/gfwlist.conf > /tmp/gfwlist.conf
#wget --no-check-certificate --timeout=8 -qO - "$url_main"/gfwlist.conf > /tmp/gfwlist.conf
curl --connect-timeout 8 -m 20 "$url_main"/gfwlist.conf > /tmp/gfwlist.conf
md5sum_gfwlist1=$(md5sum /tmp/gfwlist.conf | sed 's/ /\n/g'| sed -n 1p)
if [ "$md5sum_gfwlist1"x = "$md5sum_gfwlist2"x ];then
echo_date 下载完成,校验通过,将临时文件覆盖到原始gfwlist文件
Expand Down Expand Up @@ -79,7 +81,8 @@ start_update(){
if [ "$version_chnroute1" != "$version_chnroute2" ];then
echo_date 检测到新版本chnroute,开始更新...
echo_date 下载chnroute到临时文件...
wget --no-check-certificate --timeout=8 -qO - "$url_main"/chnroute.txt > /tmp/chnroute.txt
#wget --no-check-certificate --timeout=8 -qO - "$url_main"/chnroute.txt > /tmp/chnroute.txt
curl --connect-timeout 8 -m 20 "$url_main"/chnroute.txt > /tmp/chnroute.txt
md5sum_chnroute1=$(md5sum /tmp/chnroute.txt | sed 's/ /\n/g'| sed -n 1p)
if [ "$md5sum_chnroute1"x = "$md5sum_chnroute2"x ];then
echo_date 下载完成,校验通过,将临时文件覆盖到原始chnroute文件
Expand Down Expand Up @@ -107,7 +110,8 @@ start_update(){
if [ "$version_cdn1" != "$version_cdn2" ];then
echo_date 检测到新版本cdn名单,开始更新...
echo_date 下载cdn名单到临时文件...
wget --no-check-certificate --timeout=8 -qO - "$url_main"/cdn.txt > /tmp/cdn.txt
#wget --no-check-certificate --timeout=8 -qO - "$url_main"/cdn.txt > /tmp/cdn.txt
curl --connect-timeout 8 -m 20 "$url_main"/cdn.txt > /tmp/cdn.txt
md5sum_cdn1=$(md5sum /tmp/cdn.txt | sed 's/ /\n/g'| sed -n 1p)
if [ "$md5sum_cdn1"x = "$md5sum_cdn2"x ];then
echo_date 下载完成,校验通过,将临时文件覆盖到原始cdn名单文件
Expand Down
3 changes: 2 additions & 1 deletion fancyss_arm/shadowsocks/scripts/ss_update.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@ update_ss(){
cd /tmp
md5_web1=`curl -s "$main_url"/version | sed -n 2p`
echo_date 开启下载进程,从主服务器上下载更新包...
wget --no-check-certificate --timeout=5 "$main_url"/shadowsocks.tar.gz
#wget --no-check-certificate --timeout=5 "$main_url"/shadowsocks.tar.gz
curl --connect-timeout 5 --speed-time 8 --speed-limit 1 -o shadowsocks.tar.gz "$main_url"/shadowsocks.tar.gz
md5sum_gz=`md5sum /tmp/shadowsocks.tar.gz | sed 's/ /\n/g'| sed -n 1p`
if [ "$md5sum_gz" != "$md5_web1" ]; then
echo_date 更新包md5校验不一致!估计是下载的时候出了什么状况,请等待一会儿再试...
Expand Down
11 changes: 7 additions & 4 deletions fancyss_arm/shadowsocks/scripts/ss_v2ray.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ url_back=""
get_latest_version(){
rm -rf /tmp/v2ray_latest_info.txt
echo_date "检测V2Ray最新版本..."
curl --connect-timeout 8 -s $url_main/latest.txt > /tmp/v2ray_latest_info.txt
curl --connect-timeout 8 -m 20 -s $url_main/latest.txt > /tmp/v2ray_latest_info.txt
if [ "$?" == "0" ];then
if [ -z "`cat /tmp/v2ray_latest_info.txt`" ];then
echo_date "获取V2Ray最新版本信息失败!使用备用服务器检测!"
Expand Down Expand Up @@ -107,7 +107,8 @@ update_now(){
mkdir -p /tmp/v2ray && cd /tmp/v2ray

echo_date "开始下载校验文件:md5sum.txt"
wget --no-check-certificate --timeout=20 -qO - $url_main/$1/md5sum.txt > /tmp/v2ray/md5sum.txt
#wget --no-check-certificate --timeout=20 -qO - $url_main/$1/md5sum.txt > /tmp/v2ray/md5sum.txt
curl --connect-timeout 8 -m 20 -s $url_main/$1/md5sum.txt > /tmp/v2ray/md5sum.txt
if [ "$?" != "0" ];then
echo_date "md5sum.txt下载失败!"
md5sum_ok=0
Expand All @@ -117,7 +118,8 @@ update_now(){
fi

echo_date "开始下载v2ray程序"
wget --no-check-certificate --timeout=20 --tries=1 $url_main/$1/v2ray
#wget --no-check-certificate --timeout=20 --tries=1 $url_main/$1/v2ray
curl --connect-timeout 8 --speed-time 20 --speed-limit 1 -o v2ray $url_main/$1/v2ray
#curl -L -H "Cache-Control: no-cache" -o /tmp/v2ray/v2ray $url_main/$1/v2ray
if [ "$?" != "0" ];then
echo_date "v2ray下载失败!"
Expand All @@ -128,7 +130,8 @@ update_now(){
fi

echo_date "开始下载v2ctl程序"
wget --no-check-certificate --timeout=20 --tries=1 $url_main/$1/v2ctl
#wget --no-check-certificate --timeout=20 --tries=1 $url_main/$1/v2ctl
curl --connect-timeout 8 --speed-time 20 --speed-limit 1 -o v2ctl $url_main/$1/v2ctl
if [ "$?" != "0" ];then
echo_date "v2ctl下载失败!"
v2ctl_ok=0
Expand Down
Loading