From 6384f745ecbac507b44722ef0a7ef8fdacc008fc Mon Sep 17 00:00:00 2001 From: sbwml <984419930@qq.com> Date: Sun, 30 Oct 2022 20:03:34 +0800 Subject: [PATCH] what am I doing? --- luci-app-mosdns/root/usr/share/mosdns/mosdns.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/luci-app-mosdns/root/usr/share/mosdns/mosdns.sh b/luci-app-mosdns/root/usr/share/mosdns/mosdns.sh index 59be953..c2b6be5 100755 --- a/luci-app-mosdns/root/usr/share/mosdns/mosdns.sh +++ b/luci-app-mosdns/root/usr/share/mosdns/mosdns.sh @@ -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