2018-12-31

This commit is contained in:
monlor
2018-12-31 23:47:47 +08:00
commit 3ae56f5e6e
1091 changed files with 173538 additions and 0 deletions

View File

@@ -0,0 +1,18 @@
#!/bin/sh
#copyright by monlor
source /etc/mixbox/bin/base
eval `mbdb export shadowsocks`
chnroute=${mbroot}/apps/${appname}/config/chnroute.txt
gfwlist=${mbroot}/apps/${appname}/config/gfwlist.conf
cdnlist=${mbroot}/apps/${appname}/config/cdn.txt
url="https://raw.githubusercontent.com/hq450/fancyss/master/rules"
logsh "$service" "更新${appname}分流规则"
wgetsh $gfwlist $url/gfwlist.conf
[ $? -ne 0 ] && logsh "$service" "更新gfw黑名单规则失败"
wgetsh $chnroute $url/chnroute.txt
[ $? -ne 0 ] && logsh "$service" "更新大陆白名单规则失败"
wgetsh $cdnlist $url/cdn.txt
[ $? -ne 0 ] && logsh "$service" "更新cdn加速列表失败"