Enable Tun SplitCore

This commit is contained in:
DHR60 2025-07-24 15:28:51 +08:00
parent 0a2b4374f9
commit 896ec62232

View file

@ -247,6 +247,20 @@ public class CoreHandler
PreSocksPort = AppHandler.Instance.GetLocalPort(EInboundProtocol.split);
}
}
else if (EnableTun)
{
PreCoreType = ECoreType.sing_box;
if (PreCoreType != CoreType) // CoreType is xray
{
SplitCore = true;
PreSocksPort = AppHandler.Instance.GetLocalPort(EInboundProtocol.split);
}
else // CoreType is sing_box
{
PreCoreType = null;
}
}
}
}