From 1d38f16d409165e2bbd3efa1881d10032c3c22c7 Mon Sep 17 00:00:00 2001 From: DHR60 Date: Sat, 9 May 2026 22:11:08 +0800 Subject: [PATCH] Fix core config --- .../Services/CoreConfig/V2ray/V2rayInboundService.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/v2rayN/ServiceLib/Services/CoreConfig/V2ray/V2rayInboundService.cs b/v2rayN/ServiceLib/Services/CoreConfig/V2ray/V2rayInboundService.cs index 91c8c133..239c68ad 100644 --- a/v2rayN/ServiceLib/Services/CoreConfig/V2ray/V2rayInboundService.cs +++ b/v2rayN/ServiceLib/Services/CoreConfig/V2ray/V2rayInboundService.cs @@ -10,9 +10,9 @@ public partial class CoreConfigV2rayService var listenPort = AppManager.Instance.GetLocalPort(EInboundProtocol.socks); _coreConfig.inbounds = []; var inbound = BuildInbound(_config.Inbound.First(), EInboundProtocol.socks, true); + var isUsingLocalMixedPort = _node.Address == Global.Loopback && _node.Port == listenPort; - if (!context.IsTunEnabled - || (context.IsTunEnabled && _node.Address != Global.Loopback && _node.Port != listenPort)) + if (!context.IsTunEnabled || !isUsingLocalMixedPort) { _coreConfig.inbounds.Add(inbound);