From 38164d1995d8e3d14f5759ee9da5b2887e07727b Mon Sep 17 00:00:00 2001 From: Samuel Huang Date: Mon, 30 Aug 2021 15:12:26 +1000 Subject: [PATCH] --dns-local issue fix --- run.sh | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/run.sh b/run.sh index 5e8294d..41641ed 100755 --- a/run.sh +++ b/run.sh @@ -54,14 +54,14 @@ while true ; do shift 2 ;; --dns-local) - DNSLOCAL+=$2 + DNSLOCAL+=($2) shift 2 ;; --dns-local-cn) - DNSLOCAL+="apple.china.conf" - DNSLOCAL+="google.china.conf" - DNSLOCAL+="bogus-nxdomain.china.conf" - DNSLOCAL+="accelerated-domains.china.conf" + DNSLOCAL+=("apple.china.conf") + DNSLOCAL+=("google.china.conf") + DNSLOCAL+=("bogus-nxdomain.china.conf") + DNSLOCAL+=("accelerated-domains.china.conf") shift 1 ;; --cn-direct) @@ -133,7 +133,7 @@ if [ "${XRAY}" != "1" ]; then fi if [ -n "${DNSLOCAL}" ]; then - for dnslocal in "${DNSLOCAL}" + for dnslocal in "${DNSLOCAL[@]}" do cp -a /etc/dnsmasq.disable/${dnslocal} /etc/dnsmasq.d/ done