database download timeout limit
* database download timeout limit * fix indentation * change alternate dns * remove wget downloader, ps. curl exists in the system by default
This commit is contained in:
parent
cf2f3245d3
commit
4e4a89b7aa
@ -4,7 +4,7 @@ bakdns() {
|
||||
if [ "$1" == "0" ]; then
|
||||
echo "119.29.29.29"
|
||||
elif [ "$1" == "1" ]; then
|
||||
echo "101.226.4.6"
|
||||
echo "114.114.114.114"
|
||||
fi
|
||||
}
|
||||
|
||||
@ -13,11 +13,7 @@ exist() {
|
||||
}
|
||||
|
||||
getdat() {
|
||||
if exist curl; then
|
||||
curl -fSLo "$TMPDIR/$1" "https://github.cooluc.com/https://github.com/Loyalsoldier/v2ray-rules-dat/releases/latest/download/$1"
|
||||
else
|
||||
wget "https://github.cooluc.com/https://github.com/Loyalsoldier/v2ray-rules-dat/releases/latest/download/$1" -nv -O "$TMPDIR/$1"
|
||||
fi
|
||||
curl --connect-timeout 60 -m 900 -fSLo "$TMPDIR/$1" "https://github.cooluc.com/https://github.com/Loyalsoldier/v2ray-rules-dat/releases/latest/download/$1"
|
||||
}
|
||||
|
||||
getdns() {
|
||||
|
Loading…
Reference in New Issue
Block a user