diff --git a/luci-app-timecontrol/Makefile b/luci-app-timecontrol/Makefile index ff5ea68c..9d4acb50 100644 --- a/luci-app-timecontrol/Makefile +++ b/luci-app-timecontrol/Makefile @@ -18,7 +18,7 @@ LUCI_DEPENDS:=+bc +nftables +bash +conntrack LUCI_PKGARCH:=all PKG_VERSION:=3.2.4 -PKG_RELEASE:=3 +PKG_RELEASE:=4 PKG_MAINTAINER:=sirpdboy define Build/Compile diff --git a/luci-app-timecontrol/root/usr/bin/timecontrol b/luci-app-timecontrol/root/usr/bin/timecontrol index 2a6bfe35..ceb7a98b 100755 --- a/luci-app-timecontrol/root/usr/bin/timecontrol +++ b/luci-app-timecontrol/root/usr/bin/timecontrol @@ -22,6 +22,9 @@ bin_iptables=$(which iptables 2>/dev/null) bin_ip6tables=$(which ip6tables 2>/dev/null) bin_conntrack=$(which conntrack 2>/dev/null) +nftables_ver=0 +iptables_ver=0 + # 获取配置 chain=$(config_t_get timecontrol chain 0 "forward") list_type=$(config_t_get timecontrol list_type 0 "blacklist") @@ -53,7 +56,7 @@ parse_target() { # 去除空格 target=$(echo "${target}" | xargs) - dbg "解析目标地址: $target" + # dbg "解析目标地址: $target" # IPv4单个地址 if echo "$target" | grep -qE '^([0-9]{1,3}\.){3}[0-9]{1,3}$'; then