Update github mirror
This commit is contained in:
parent
2c3d55cdf5
commit
238a873305
@ -7,10 +7,12 @@ if [ "$(ifconfig | grep -c wan)" = 0 ]; then
|
|||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ "$(getdns 0)" =~ ^127\.[0-9]+\.[0-9]+\.[0-9]+$ ]]; then
|
if [ $1 ]; then
|
||||||
getdns "$1" inactive
|
if [[ "$(getdns 0)" =~ ^127\.[0-9]+\.[0-9]+\.[0-9]+$ ]]; then
|
||||||
elif [[ "$(getdns "$1")" =~ ^[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+$ ]]; then
|
getdns "$1" inactive
|
||||||
getdns "$1"
|
elif [[ "$(getdns "$1")" =~ ^[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+$ ]]; then
|
||||||
else
|
getdns "$1"
|
||||||
bakdns "$1"
|
else
|
||||||
|
bakdns "$1"
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
@ -14,9 +14,9 @@ exist() {
|
|||||||
|
|
||||||
getdat() {
|
getdat() {
|
||||||
if exist curl; then
|
if exist curl; then
|
||||||
curl -fSLo "$TMPDIR/$1" "https://github.sbwml.repl.co/https://github.com/Loyalsoldier/v2ray-rules-dat/releases/latest/download/$1"
|
curl -fSLo "$TMPDIR/$1" "https://github.cooluc.com/https://github.com/Loyalsoldier/v2ray-rules-dat/releases/latest/download/$1"
|
||||||
else
|
else
|
||||||
wget "https://github.sbwml.repl.co/https://github.com/Loyalsoldier/v2ray-rules-dat/releases/latest/download/$1" -nv -O "$TMPDIR/$1"
|
wget "https://github.cooluc.com/https://github.com/Loyalsoldier/v2ray-rules-dat/releases/latest/download/$1" -nv -O "$TMPDIR/$1"
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user