diff --git a/common/service.sh b/common/service.sh index 7a0e2f7..7ac89b5 100755 --- a/common/service.sh +++ b/common/service.sh @@ -6,12 +6,10 @@ MODDIR=${0%/*} # This script will be executed in late_start service mode # More info in the main Magisk thread -while true -do +for i in 1 2 3 4 5 6 7 8 9 10 11 12; do ping -c 1 download.dnscrypt.info if [[ $? == 0 ]]; 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:5354