From 3065d71e61435a5aff44dac78cb696dedae8d197 Mon Sep 17 00:00:00 2001 From: George Daniel <51092143+lindroidux@users.noreply.github.com> Date: Wed, 12 Jun 2019 06:22:06 +0000 Subject: [PATCH] Update option.sh --- common/option.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/common/option.sh b/common/option.sh index ed163c8..54a9690 100755 --- a/common/option.sh +++ b/common/option.sh @@ -62,12 +62,12 @@ ui_print " " ui_print " Vol- = Use previous config" ui_print " " -CONFIG_FILE=$MODPATH/system/etc/dnscrypt-proxy/dnscrypt-proxy.toml +CONFIG_FILE=/data/media/0/dnscrypt-proxy/dnscrypt-proxy.toml if $FUNCTION; then ui_print "Replace old config" ui_print " " - cp -af $MODPATH/system/etc/dnscrypt-proxy/example-dnscrypt-proxy.toml $CONFIG_FILE + cp -af /data/media/0/dnscrypt-proxy/example-dnscrypt-proxy.toml $CONFIG_FILE sed -i -e 's/127.0.0.1:53/127.0.0.1:5354/g' $CONFIG_FILE sed -i -e 's/\[::1\]:53/\[::1\]:5354/g' $CONFIG_FILE else @@ -94,6 +94,6 @@ else ui_print " " ui_print " Manual mode" ui_print " deleting iptables rules" - sed -i -e '/for/,$d' $TMPDIR/service.sh - sed -i -e "s/'127.0.0.1.*'/'127.0.0.1:53', '[::1]:53'/g" $MODPATH/system/etc/dnscrypt-proxy/dnscrypt-proxy.toml + sed -i -e '/#IPTABLES/,$d' $TMPDIR/service.sh +# sed -i -e "s/'127.0.0.1.*'/'127.0.0.1:53', '[::1]:53'/g" /data/media/0/dnscrypt-proxy/dnscrypt-proxy.toml fi