🗽 Sync 2026-11-10 01:38:11

This commit is contained in:
github-actions[bot] committed 2026-11-10 01:38:11 +08:00
1 parent a973c47ef5
commit afc41e7bcf
5 files changed
+25 -15

No files matched your search

+1 -1
View File
@@ -8,7 +8,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=luci-app-passwall
PKG_VERSION:=26.11.3
PKG_RELEASE:=371
PKG_RELEASE:=372
PKG_PO_VERSION:=$(PKG_VERSION)
PKG_CONFIG_DEPENDS:= \
@@ -256,7 +256,7 @@
document.head.appendChild(styleNode)
// trace back from option -> select -> body for background color
const panelRadius = styleSelect.borderRadius;
const optionColor = !lv_isTransparent(styleOption.backgroundColor) ? styleOption.backgroundColor : !lv_isTransparent(styleSelect.backgroundColor) ? styleSelect.backgroundColor : styleBody.backgroundColor
const optionColor = !lv_isTransparent(styleSelect.backgroundColor) ? styleSelect.backgroundColor : !lv_isTransparent(styleOption.backgroundColor) ? styleOption.backgroundColor : styleBody.backgroundColor
const titleColor = lv_getColorSchema(optionColor) === "light" ? lv_darker(optionColor, 30) : lv_lighter(optionColor, 30)
// 自带箭头已占据布局空间,右内边距使用主题的左内边距
const selectStyleCSS = [`#${CSS.escape(cbid + ".display")} {`, lv_style2Css(styleSelect, styleNames), lv_style2Css(styleSelect, ["backgroundColor"]), `padding-right: ${styleSelect.paddingLeft} !important;`, "}"]
@@ -1029,16 +1029,16 @@ add_firewall_rule() {
[ -n "$ISP_DNS" ] && {
#echolog "处理 ISP DNS 例外..."
for ispip in $ISP_DNS; do
ipset -! add $IPSET_WHITE $ispip timeout 0
echolog " - [$?]追加ISP IPv4 DNS到白名单:${ispip}"
ipset -! add $IPSET_VPS $ispip
echolog " - [$?]追加ISP IPv4 DNS到ipset[$IPSET_VPS]:${ispip}"
done
}
[ -n "$ISP_DNS6" ] && {
#echolog "处理 ISP IPv6 DNS 例外..."
for ispip6 in $ISP_DNS6; do
ipset -! add $IPSET_WHITE6 $ispip6 timeout 0
echolog " - [$?]追加ISP IPv6 DNS到白名单:${ispip6}"
ipset -! add $IPSET_VPS6 $ispip6
echolog " - [$?]追加ISP IPv6 DNS到ipset[$IPSET_VPS6]:${ispip6}"
done
}
@@ -1468,7 +1468,7 @@ del_firewall_rule() {
destroy_ipset $IPSET_WAN
destroy_ipset $IPSET_LAN
destroy_ipset $IPSET_VPS
#destroy_ipset $IPSET_SHUNT
destroy_ipset $IPSET_SHUNT
#destroy_ipset $IPSET_GFW
#destroy_ipset $IPSET_CHN
#destroy_ipset $IPSET_BLACK
@@ -1479,13 +1479,18 @@ del_firewall_rule() {
destroy_ipset $IPSET_WAN6
destroy_ipset $IPSET_LAN6
destroy_ipset $IPSET_VPS6
#destroy_ipset $IPSET_SHUNT6
destroy_ipset $IPSET_SHUNT6
#destroy_ipset $IPSET_GFW6
#destroy_ipset $IPSET_CHN6
#destroy_ipset $IPSET_BLACK6
destroy_ipset $IPSET_BLOCK6
destroy_ipset $IPSET_WHITE6
local ipset_name
for ipset_name in $(ipset list -name 2>/dev/null | grep -E '^psw_.+_shunt6?$'); do
destroy_ipset "$ipset_name"
done
echolog "删除 iptables 规则完成。"
}
@@ -224,7 +224,7 @@ gen_nftset() {
if [ "$timeout_argument_set" = "0" ]; then
nft "add set $NFTABLE_NAME $nftset_name { type $ip_type; flags interval; auto-merge; }"
else
nft "add set $NFTABLE_NAME $nftset_name { type $ip_type; flags interval, timeout; timeout $timeout_argument_set; gc-interval $gc_interval_time; auto-merge; }"
nft "add set $NFTABLE_NAME $nftset_name { type $ip_type; flags interval, timeout; timeout $timeout_argument_set; gc-interval $gc_interval_time; }"
fi
fi
}
@@ -1102,17 +1102,17 @@ add_firewall_rule() {
[ -n "$ISP_DNS" ] && {
#echolog "处理 ISP DNS 例外..."
echo "$ISP_DNS" | insert_nftset $NFTSET_WHITE
echo "$ISP_DNS" | insert_nftset $NFTSET_VPS
for ispip in $ISP_DNS; do
echolog " - [$?]追加ISP IPv4 DNS到白名单:${ispip}"
echolog " - [$?]追加ISP IPv4 DNS到nftset[$NFTSET_VPS]:${ispip}"
done
}
[ -n "$ISP_DNS6" ] && {
#echolog "处理 ISP IPv6 DNS 例外..."
echo $ISP_DNS6 | insert_nftset $NFTSET_WHITE6
echo "$ISP_DNS6" | insert_nftset $NFTSET_VPS6
for ispip6 in $ISP_DNS6; do
echolog " - [$?]追加ISP IPv6 DNS到白名单:${ispip6}"
echolog " - [$?]追加ISP IPv6 DNS到nftset[$NFTSET_VPS6]:${ispip6}"
done
}
@@ -1549,6 +1549,11 @@ del_firewall_rule() {
destroy_nftset $NFTSET_BLOCK6 $NFTSET_BLOCK6_STATIC
destroy_nftset $NFTSET_WHITE6 $NFTSET_WHITE6_STATIC
local nftset
for nftset in $(nft -t list table $NFTABLE_NAME 2>/dev/null | awk '$1 == "set" && $2 ~ /^psw_.+_shunt6?_static$/ {print $2}'); do
destroy_nftset "$nftset"
done
del_script_mwan3
echolog "删除 nftables 规则完成。"
+2 -2
View File
@@ -1,8 +1,8 @@
include $(TOPDIR)/rules.mk
PKG_NAME:=luci-app-trafficctl
PKG_VERSION:=1.29.2
PKG_RELEASE:=26
PKG_VERSION:=1.30.0
PKG_RELEASE:=27
PKG_LICENSE:=Apache-2.0
PKG_MAINTAINER:=Denis Iusupov <yusdyr@gmail.com>