From 0d54aee58427c0ae6fe25c68db516e376c564d6f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=96=E7=95=8C?= Date: Wed, 2 Apr 2025 13:44:39 +0800 Subject: [PATCH] test: Force auto-redirect mark mode --- protocol/tun/inbound.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/protocol/tun/inbound.go b/protocol/tun/inbound.go index 00cc0561..ac16a6ee 100644 --- a/protocol/tun/inbound.go +++ b/protocol/tun/inbound.go @@ -245,7 +245,7 @@ func NewInbound(ctx context.Context, router adapter.Router, logger log.ContextLo if err != nil { return nil, E.Cause(err, "initialize auto-redirect") } - if !C.IsAndroid && (len(inbound.routeRuleSet) > 0 || len(inbound.routeExcludeRuleSet) > 0) { + if !C.IsAndroid /*&& (len(inbound.routeRuleSet) > 0 || len(inbound.routeExcludeRuleSet) > 0) */ { inbound.tunOptions.AutoRedirectMarkMode = true err = networkManager.RegisterAutoRedirectOutputMark(inbound.tunOptions.AutoRedirectOutputMark) if err != nil {