try resolve download.dnscrypt.info first
This commit is contained in:
parent
89b500a66a
commit
2127b48580
|
@ -6,12 +6,14 @@ MODDIR=${0%/*}
|
||||||
# This script will be executed in late_start service mode
|
# This script will be executed in late_start service mode
|
||||||
# More info in the main Magisk thread
|
# More info in the main Magisk thread
|
||||||
|
|
||||||
$MODDIR/system/xbin/dnscrypt-proxy -config $MODDIR/system/etc/dnscrypt-proxy/dnscrypt-proxy.toml &
|
|
||||||
while true
|
while true
|
||||||
do
|
do
|
||||||
ping -c 1 google.com
|
ping -c 1 download.dnscrypt.info
|
||||||
if [[ $? == 0 ]];
|
if [[ $? == 0 ]];
|
||||||
then
|
then
|
||||||
|
|
||||||
|
$MODDIR/system/xbin/dnscrypt-proxy -config $MODDIR/system/etc/dnscrypt-proxy/dnscrypt-proxy.toml &
|
||||||
|
sleep 5
|
||||||
iptables -t nat -A OUTPUT -p tcp --dport 53 -j DNAT --to-destination 127.0.0.1:5353
|
iptables -t nat -A OUTPUT -p tcp --dport 53 -j DNAT --to-destination 127.0.0.1:5353
|
||||||
iptables -t nat -A OUTPUT -p udp --dport 53 -j DNAT --to-destination 127.0.0.1:5353
|
iptables -t nat -A OUTPUT -p udp --dport 53 -j DNAT --to-destination 127.0.0.1:5353
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in New Issue