Add xray tun support (#9063)

* Add xray tun support

* Revert mtu list
This commit is contained in:
DHR60
2026-04-16 11:17:44 +00:00
committed by GitHub
parent 177ad7db3d
commit 494b35c1f7
17 changed files with 208 additions and 284 deletions
+3 -1
View File
@@ -1417,10 +1417,12 @@ public static class ConfigHandler
public static ProfileItem? GetPreSocksItem(Config config, ProfileItem node, ECoreType coreType)
{
ProfileItem? itemSocks = null;
var enableLegacyProtect = config.TunModeItem.EnableLegacyProtect
|| Utils.IsNonWindows();
if (node.ConfigType != EConfigType.Custom
&& coreType != ECoreType.sing_box
&& config.TunModeItem.EnableTun
&& config.TunModeItem.EnableLegacyProtect)
&& enableLegacyProtect)
{
itemSocks = new ProfileItem()
{