* Fix

* Fix res and uri

* Fix core config
This commit is contained in:
DHR60
2026-05-10 06:21:51 +00:00
committed by GitHub
parent e7973840ce
commit f8bc706cda
9 changed files with 13 additions and 10 deletions
@@ -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);