mirror of
https://github.com/samuelhbne/proxy-xray.git
synced 2025-12-17 20:54: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
|
shift 2
|
||||||
;;
|
;;
|
||||||
--dns-local)
|
--dns-local)
|
||||||
DNSLOCAL+=$2
|
DNSLOCAL+=($2)
|
||||||
shift 2
|
shift 2
|
||||||
;;
|
;;
|
||||||
--dns-local-cn)
|
--dns-local-cn)
|
||||||
DNSLOCAL+="apple.china.conf"
|
DNSLOCAL+=("apple.china.conf")
|
||||||
DNSLOCAL+="google.china.conf"
|
DNSLOCAL+=("google.china.conf")
|
||||||
DNSLOCAL+="bogus-nxdomain.china.conf"
|
DNSLOCAL+=("bogus-nxdomain.china.conf")
|
||||||
DNSLOCAL+="accelerated-domains.china.conf"
|
DNSLOCAL+=("accelerated-domains.china.conf")
|
||||||
shift 1
|
shift 1
|
||||||
;;
|
;;
|
||||||
--cn-direct)
|
--cn-direct)
|
||||||
@@ -133,7 +133,7 @@ if [ "${XRAY}" != "1" ]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -n "${DNSLOCAL}" ]; then
|
if [ -n "${DNSLOCAL}" ]; then
|
||||||
for dnslocal in "${DNSLOCAL}"
|
for dnslocal in "${DNSLOCAL[@]}"
|
||||||
do
|
do
|
||||||
cp -a /etc/dnsmasq.disable/${dnslocal} /etc/dnsmasq.d/
|
cp -a /etc/dnsmasq.disable/${dnslocal} /etc/dnsmasq.d/
|
||||||
done
|
done
|
||||||
|
|||||||
Reference in New Issue
Block a user