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
@@ -12,6 +12,10 @@ public partial class CoreConfigV2rayService
GenObservatory(multipleLoad);
GenBalancer(multipleLoad);
}
if (context.IsTunEnabled)
{
_coreConfig.outbounds.Add(BuildDnsOutbound());
}
}
private List<Outbounds4Ray> BuildAllProxyOutbounds(string baseTagName = Global.ProxyTag)
@@ -825,4 +829,10 @@ public partial class CoreConfigV2rayService
}
}
}
private static Outbounds4Ray BuildDnsOutbound()
{
var outbound = new Outbounds4Ray { tag = Global.DnsOutboundTag, protocol = "dns", };
return outbound;
}
}