what am I doing?
This commit is contained in:
parent
cca5d2ff12
commit
6384f745ec
@ -41,7 +41,7 @@ adlist_update() (
|
||||
ad_source=$(uci -q get mosdns.config.ad_source)
|
||||
[ $ad_source = "geosite.dat" ] && exit 0
|
||||
AD_TMPDIR=$(mktemp -d) || exit 1
|
||||
if [[ $a =~ "^https://raw.githubusercontent.com" ]]; then
|
||||
if [[ $ad_source =~ "^https://raw.githubusercontent.com" ]]; then
|
||||
google_status=$(curl -I -4 -m 3 -o /dev/null -s -w %{http_code} http://www.google.com/generate_204)
|
||||
[ $google_status -ne "204" ] && mirror="https://ghproxy.com/"
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user