what am I doing?

This commit is contained in:
sbwml 2022-10-30 20:03:34 +08:00
parent cca5d2ff12
commit 6384f745ec

View File

@ -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