From 7c01c94bb377ea84d2cb5bf27c458f75d94ba838 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Sat, 6 Jun 2026 23:55:53 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=8F=85=20Sync=202026-06-06=2023:55:53?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- luci-app-timecontrol/Makefile | 2 +- luci-app-timecontrol/root/usr/bin/timecontrol | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) 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