diff --git a/luci-app-passwall2/Makefile b/luci-app-passwall2/Makefile index e10dd3413..4b33596bf 100644 --- a/luci-app-passwall2/Makefile +++ b/luci-app-passwall2/Makefile @@ -7,7 +7,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=luci-app-passwall2 PKG_VERSION:=26.10.1 -PKG_RELEASE:=132 +PKG_RELEASE:=133 PKG_PO_VERSION:=$(PKG_VERSION) PKG_CONFIG_DEPENDS:= \ diff --git a/luci-app-passwall2/root/usr/share/passwall2/nftables.sh b/luci-app-passwall2/root/usr/share/passwall2/nftables.sh index 53f2f3c0f..c9684d7a2 100755 --- a/luci-app-passwall2/root/usr/share/passwall2/nftables.sh +++ b/luci-app-passwall2/root/usr/share/passwall2/nftables.sh @@ -149,7 +149,7 @@ gen_nft_tables() { insert_nftset() { local nftset_name="${1}"; shift - local timeout_argument="${1}"; shift + local timeout_argument="${1:--1}"; shift local default_timeout="365d" local suffix="" @@ -692,13 +692,13 @@ update_wan_sets() { local WAN_IP=$(get_wan_ips ip4) [ -n "$WAN_IP" ] && { # nft flush set $NFTABLE_NAME $NFTSET_WAN - echo "$WAN_IP" | insert_nftset $NFTSET_WAN + echo "$WAN_IP" | insert_nftset $NFTSET_WAN "-1" } local WAN6_IP=$(get_wan_ips ip6) [ -n "${WAN6_IP}" ] && { # nft flush set $NFTABLE_NAME $NFTSET_WAN6 - echo "$WAN6_IP" | insert_nftset $NFTSET_WAN6 + echo "$WAN6_IP" | insert_nftset $NFTSET_WAN6 "-1" } ) 9>"${LOCK_PATH}/${CONFIG}_update_wan_sets.lock" } diff --git a/luci-app-substore/CHANGELOG.md b/luci-app-substore/CHANGELOG.md index f68cedd83..adbfeff95 100644 --- a/luci-app-substore/CHANGELOG.md +++ b/luci-app-substore/CHANGELOG.md @@ -2,6 +2,127 @@ All notable changes to this project will be documented in this file. +## [2.6.9-r1] - P2 批次七:界面 / 探测 / 转换 / 权限(L1 / L5 / L6 / L8 / L9 / L23 / L24 / L25 / L26) + +P2 最后一批,九项分布在界面、探测、转换与文件权限四处。共同点是**问题都不报错**: +界面显示错语言、探测悄悄漏节点、模板把名字吃掉一个字符、正则写错却毫无提示 —— +全部是「看起来正常,实际不对」的类型。 + +### L1 中文 msgid 在英文界面原样显示(`subscriptions.htm` / `nodes.htm` / `po/zh-cn/substore.po`) + +三个界面串用了**中文当 msgid**:`<%:操作失败%>`、`<%:选择格式后生成订阅链接,格式可随时切换%>`。 +LuCI 的翻译方向是「msgid(英文)→ msgstr(当前语言)」,拿中文当 msgid 且 `.po` 里没有 +对应条目时,英文界面会**原样显示中文**。 + +现在 msgid 一律用英文,中文只作为 `po/zh-cn/substore.po` 里的 `msgstr`。 +新增条目:`Operation failed`、`Pick a format to generate the subscription link; you can +switch formats at any time`,并补齐此前缺失的 `Type`。 + +### L5 只转义 `` 里的 JSON 此前只做 `:gsub("` 提前闭合, +但挡不住 `