From 3cb28699209ec9ee255ba5655ebb39aeccedead8 Mon Sep 17 00:00:00 2001 From: DHR60 Date: Wed, 15 Apr 2026 11:06:03 +0000 Subject: [PATCH] Fix (#9110) --- .../Services/CoreConfig/Singbox/SingboxInboundService.cs | 2 +- .../Services/CoreConfig/Singbox/SingboxRoutingService.cs | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/v2rayN/ServiceLib/Services/CoreConfig/Singbox/SingboxInboundService.cs b/v2rayN/ServiceLib/Services/CoreConfig/Singbox/SingboxInboundService.cs index 3a27c7da..13c4e40b 100644 --- a/v2rayN/ServiceLib/Services/CoreConfig/Singbox/SingboxInboundService.cs +++ b/v2rayN/ServiceLib/Services/CoreConfig/Singbox/SingboxInboundService.cs @@ -11,7 +11,7 @@ public partial class CoreConfigSingboxService _coreConfig.inbounds = []; if (!context.IsTunEnabled - || (context.IsTunEnabled && _node.Port != listenPort)) + || (context.IsTunEnabled && _node.Address != Global.Loopback && _node.Port != listenPort)) { var inbound = new Inbound4Sbox() { diff --git a/v2rayN/ServiceLib/Services/CoreConfig/Singbox/SingboxRoutingService.cs b/v2rayN/ServiceLib/Services/CoreConfig/Singbox/SingboxRoutingService.cs index 01c32cc2..e220aa21 100644 --- a/v2rayN/ServiceLib/Services/CoreConfig/Singbox/SingboxRoutingService.cs +++ b/v2rayN/ServiceLib/Services/CoreConfig/Singbox/SingboxRoutingService.cs @@ -96,7 +96,6 @@ public partial class CoreConfigSingboxService _coreConfig.route.rules.Add(new() { port = [53], - network = ["udp"], action = "hijack-dns" }); }