mirror of
https://github.com/samuelhbne/proxy-xray.git
synced 2025-12-17 04:34:37 +03:00
--dns-local issue fix
This commit is contained in:
12
run.sh
12
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
|
||||
|
||||
Reference in New Issue
Block a user