diff --git a/openmptcprouter/files/etc/uci-defaults/1940-omr-dns b/openmptcprouter/files/etc/uci-defaults/1940-omr-dns index 10ca6c820..53ae4ab76 100755 --- a/openmptcprouter/files/etc/uci-defaults/1940-omr-dns +++ b/openmptcprouter/files/etc/uci-defaults/1940-omr-dns @@ -42,9 +42,12 @@ fi if [ "$(uci -q get https-dns-proxy.@https-dns-proxy[0].listen_port)" = "5053" ]; then uci -q batch <<-EOF >/dev/null - delete https-dns-proxy.@https-dns-proxy[0] - delete https-dns-proxy.@https-dns-proxy[1] + delete https-dns-proxy.@https-dns-proxy[-1] + delete https-dns-proxy.@https-dns-proxy[-1] + commit https-dns-proxy EOF +# /etc/init.d/https-dns-proxy stop +# /etc/init.d/https-dns-proxy disable # set https-dns-proxy.@https-dns-proxy[-1]=https-dns-proxy # set https-dns-proxy.@https-dns-proxy[-1].listen_addr='127.0.0.1' # set https-dns-proxy.@https-dns-proxy[-1].user='nobody'