From 5738bba487ad5871fe52c0eb75ab2703649b7c76 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Thu, 12 Nov 2026 03:24:35 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=8D=95=20Sync=202026-11-12=2003:24:35?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- v2raya/Makefile | 2 +- ...011-clean-residual-transparent-rules.patch | 30 ++++++++++++++----- 2 files changed, 23 insertions(+), 9 deletions(-) diff --git a/v2raya/Makefile b/v2raya/Makefile index 0ae1b9768..07fe7d3f2 100644 --- a/v2raya/Makefile +++ b/v2raya/Makefile @@ -14,7 +14,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=v2raya PKG_VERSION:=2.5.14 -PKG_RELEASE:=5 +PKG_RELEASE:=6 PKG_SOURCE:=v2rayA-$(PKG_VERSION).tar.gz PKG_SOURCE_URL:=https://codeload.github.com/v2rayA/v2rayA/tar.gz/v$(PKG_VERSION)? diff --git a/v2raya/patches/011-clean-residual-transparent-rules.patch b/v2raya/patches/011-clean-residual-transparent-rules.patch index 991689d91..5b9008ae5 100644 --- a/v2raya/patches/011-clean-residual-transparent-rules.patch +++ b/v2raya/patches/011-clean-residual-transparent-rules.patch @@ -1,20 +1,22 @@ -From 14c682ddbca62226c4ca453fcac2d28fae6109c8 Mon Sep 17 00:00:00 2001 +From 8a3f10e0295a1587fd4beef414386290aca89605 Mon Sep 17 00:00:00 2001 From: Amr Fateem -Date: Wed, 11 Nov 2026 19:56:35 +0200 +Date: Wed, 11 Nov 2026 21:06:01 +0200 Subject: [PATCH] openwrt: clean residual transparent-proxy rules on stop When a core process stops, the in-memory transparentOn flag may be false even though tproxy rules from an earlier process are still -installed. The early return then leaves those rules and the policy -route behind, so all traffic is blackholed once the core is gone. +installed. The early return leaves those rules and the policy route +behind, so stopping the proxy or the service leaves no internet. -Delete the residual rules before returning. The normal path still runs -the transparent-proxy hooks and removes the rules as before. +The stop request can also arrive when no core process is tracked, for +example after a process restart. Clean the residual rules in that path +too. The normal path still runs the transparent-proxy hooks and removes +the rules as before. Signed-off-by: Amr Fateem --- - kernel/v2ray/processManager.go | 10 +++++++--- - 1 file changed, 7 insertions(+), 3 deletions(-) + kernel/v2ray/processManager.go | 15 ++++++++++++--- + 1 file changed, 12 insertions(+), 3 deletions(-) --- a/kernel/v2ray/processManager.go +++ b/kernel/v2ray/processManager.go @@ -35,3 +37,15 @@ Signed-off-by: Amr Fateem return } if setting == nil { +@@ -237,6 +241,11 @@ func (m *CoreProcessManager) Stop(saveRu + m.mu.Lock() + defer m.mu.Unlock() + if m.p == nil { ++ // A previous process may have left tproxy rules behind; a stop ++ // request must still restore direct connectivity. ++ hostMu.Lock() ++ deleteTransparentProxyRules() ++ hostMu.Unlock() + return + } + if saveRunning {