From 0dbf9b779b2d934a62c79103a44a0f33ede334de Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Tue, 15 Sep 2026 01:05:01 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=8D=89=20Sync=202026-09-15=2001:05:01?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- luci-app-passwall/Makefile | 2 +- .../luasrc/passwall/util_xray.lua | 18 +++++++++++++----- 2 files changed, 14 insertions(+), 6 deletions(-) diff --git a/luci-app-passwall/Makefile b/luci-app-passwall/Makefile index 916295204..a89be1858 100644 --- a/luci-app-passwall/Makefile +++ b/luci-app-passwall/Makefile @@ -8,7 +8,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=luci-app-passwall PKG_VERSION:=26.9.9 -PKG_RELEASE:=272 +PKG_RELEASE:=273 PKG_PO_VERSION:=$(PKG_VERSION) PKG_CONFIG_DEPENDS:= \ diff --git a/luci-app-passwall/luasrc/passwall/util_xray.lua b/luci-app-passwall/luasrc/passwall/util_xray.lua index bc4e44191..ebeeec547 100644 --- a/luci-app-passwall/luasrc/passwall/util_xray.lua +++ b/luci-app-passwall/luasrc/passwall/util_xray.lua @@ -502,7 +502,7 @@ function gen_config_server(node) local settings = nil local routing = nil local outbounds = { - { protocol = "freedom", tag = "direct", finalRules = {{ action = "allow" }}}, { protocol = "blackhole", tag = "blocked" } + { protocol = "freedom", tag = "direct", settings = { finalRules = {{ action = "allow" }}}}, { protocol = "blackhole", tag = "blocked" } } local users = node.users or {} @@ -650,7 +650,9 @@ function gen_config_server(node) interface = node.outbound_node_iface } }, - finalRules = {{ action = "allow" }} + settings = { + finalRules = {{ action = "allow" }} + } } sys.call(string.format("mkdir -p %s && touch %s/%s", api.TMP_IFACE_PATH, api.TMP_IFACE_PATH, node.outbound_node_iface)) else @@ -1330,7 +1332,9 @@ function gen_config(var) interface = node.iface } }, - finalRules = {{ action = "allow" }} + settings = { + finalRules = {{ action = "allow" }} + } } sys.call(string.format("mkdir -p %s && touch %s/%s", api.TMP_IFACE_PATH, api.TMP_IFACE_PATH, node.iface)) end @@ -2041,7 +2045,9 @@ function gen_config(var) local direct_outbound = { protocol = "freedom", tag = "direct", - finalRules = {{ action = "allow" }}, + settings = { + finalRules = {{ action = "allow" }} + }, streamSettings = { sockopt = { mark = 255, @@ -2170,7 +2176,9 @@ function gen_proto_config(var) table.insert(outbounds, { protocol = "freedom", tag = "direct", - finalRules = {{ action = "allow" }}, + settings = { + finalRules = {{ action = "allow" }} + }, streamSettings = { sockopt = {mark = 255} }