mirror of
https://github.com/2dust/v2rayN.git
synced 2025-10-13 20:09:12 +00:00
Enable Tun SplitCore
This commit is contained in:
parent
0a2b4374f9
commit
896ec62232
1 changed files with 17 additions and 3 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue