From 8af0ba96b4508d411b5d585f06924f364487f51e Mon Sep 17 00:00:00 2001 From: coolsnowwolf Date: Mon, 8 Oct 2018 00:35:42 +0800 Subject: [PATCH] enhance Turbo ACC DNS Cache compatibility to all DNSMASQ version --- package/lean/luci-app-flowoffload/Makefile | 2 +- package/lean/luci-app-flowoffload/root/etc/init.d/flowoffload | 4 ++-- package/lean/luci-app-sfe/Makefile | 2 +- package/lean/luci-app-sfe/root/etc/init.d/sfe | 4 ++-- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/package/lean/luci-app-flowoffload/Makefile b/package/lean/luci-app-flowoffload/Makefile index 87a615fff..3da66aaa2 100644 --- a/package/lean/luci-app-flowoffload/Makefile +++ b/package/lean/luci-app-flowoffload/Makefile @@ -9,7 +9,7 @@ LUCI_TITLE:=LuCI support for Flow Offload LUCI_DEPENDS:=+kmod-ipt-offload +pdnsd-alt @LINUX_4_14 LUCI_PKGARCH:=all PKG_VERSION:=1.0 -PKG_RELEASE:=8 +PKG_RELEASE:=9 include $(TOPDIR)/feeds/luci/luci.mk diff --git a/package/lean/luci-app-flowoffload/root/etc/init.d/flowoffload b/package/lean/luci-app-flowoffload/root/etc/init.d/flowoffload index a0edd5c59..775c2ac5e 100755 --- a/package/lean/luci-app-flowoffload/root/etc/init.d/flowoffload +++ b/package/lean/luci-app-flowoffload/root/etc/init.d/flowoffload @@ -135,14 +135,14 @@ change_dns() { uci delete dhcp.@dnsmasq[0].server >/dev/null 2>&1 uci add_list dhcp.@dnsmasq[0].server=127.0.0.1#5333 uci delete dhcp.@dnsmasq[0].resolvfile >/dev/null 2>&1 - uci set dhcp.@dnsmasq[0].noresolv=1 + uci set dhcp.@dnsmasq[0].noresolv=0 uci commit dhcp } revert_dns() { uci del_list dhcp.@dnsmasq[0].server=127.0.0.1#5333 >/dev/null 2>&1 uci set dhcp.@dnsmasq[0].resolvfile=/tmp/resolv.conf.auto - uci delete dhcp.@dnsmasq[0].noresolv >/dev/null 2>&1 + uci set dhcp.@dnsmasq[0].noresolv=0 uci commit dhcp } diff --git a/package/lean/luci-app-sfe/Makefile b/package/lean/luci-app-sfe/Makefile index 441e9ccee..b6d4c91b7 100644 --- a/package/lean/luci-app-sfe/Makefile +++ b/package/lean/luci-app-sfe/Makefile @@ -9,7 +9,7 @@ LUCI_TITLE:=LuCI support for Turbo ACC (SFE) LUCI_DEPENDS:=+kmod-fast-classifier +pdnsd-alt @LINUX_4_9 LUCI_PKGARCH:=all PKG_VERSION:=1.0 -PKG_RELEASE:=11 +PKG_RELEASE:=12 include $(TOPDIR)/feeds/luci/luci.mk diff --git a/package/lean/luci-app-sfe/root/etc/init.d/sfe b/package/lean/luci-app-sfe/root/etc/init.d/sfe index f5496bd76..5c356597c 100755 --- a/package/lean/luci-app-sfe/root/etc/init.d/sfe +++ b/package/lean/luci-app-sfe/root/etc/init.d/sfe @@ -135,14 +135,14 @@ change_dns() { uci delete dhcp.@dnsmasq[0].server >/dev/null 2>&1 uci add_list dhcp.@dnsmasq[0].server=127.0.0.1#5333 uci delete dhcp.@dnsmasq[0].resolvfile >/dev/null 2>&1 - uci set dhcp.@dnsmasq[0].noresolv=1 + uci set dhcp.@dnsmasq[0].noresolv=0 uci commit dhcp } revert_dns() { uci del_list dhcp.@dnsmasq[0].server=127.0.0.1#5333 >/dev/null 2>&1 uci set dhcp.@dnsmasq[0].resolvfile=/tmp/resolv.conf.auto - uci delete dhcp.@dnsmasq[0].noresolv >/dev/null 2>&1 + uci set dhcp.@dnsmasq[0].noresolv=0 uci commit dhcp }