From 5c4c3d1e1f5731018d18eae3a2526a07e6a01390 Mon Sep 17 00:00:00 2001 From: DHR60 Date: Tue, 14 Apr 2026 16:43:39 +0800 Subject: [PATCH] Fix --- .../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" }); }