From 26fe9c63a35f7c2ba1e79d1ea6302b692b0c96ec Mon Sep 17 00:00:00 2001 From: 2dust <31833384+2dust@users.noreply.github.com> Date: Mon, 14 Jul 2025 16:32:10 +0800 Subject: [PATCH] Bug fix https://github.com/2dust/v2rayN/issues/7537 --- .../ServiceLib/Services/CoreConfig/CoreConfigSingboxService.cs | 2 +- v2rayN/ServiceLib/Services/CoreConfig/CoreConfigV2rayService.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/v2rayN/ServiceLib/Services/CoreConfig/CoreConfigSingboxService.cs b/v2rayN/ServiceLib/Services/CoreConfig/CoreConfigSingboxService.cs index a4887968..44d45ab2 100644 --- a/v2rayN/ServiceLib/Services/CoreConfig/CoreConfigSingboxService.cs +++ b/v2rayN/ServiceLib/Services/CoreConfig/CoreConfigSingboxService.cs @@ -1369,7 +1369,7 @@ public class CoreConfigSingboxService private async Task GenRoutingUserRuleOutbound(string outboundTag, SingboxConfig singboxConfig) { - if (outboundTag is Global.ProxyTag or Global.ProxyTag or Global.BlockTag) + if (outboundTag is Global.ProxyTag or Global.DirectTag or Global.BlockTag) { return outboundTag; } diff --git a/v2rayN/ServiceLib/Services/CoreConfig/CoreConfigV2rayService.cs b/v2rayN/ServiceLib/Services/CoreConfig/CoreConfigV2rayService.cs index f008cc14..73e638d0 100644 --- a/v2rayN/ServiceLib/Services/CoreConfig/CoreConfigV2rayService.cs +++ b/v2rayN/ServiceLib/Services/CoreConfig/CoreConfigV2rayService.cs @@ -631,7 +631,7 @@ public class CoreConfigV2rayService private async Task GenRoutingUserRuleOutbound(string outboundTag, V2rayConfig v2rayConfig) { - if (outboundTag is Global.ProxyTag or Global.ProxyTag or Global.BlockTag) + if (outboundTag is Global.ProxyTag or Global.DirectTag or Global.BlockTag) { return outboundTag; }