Fix node domain resolving in TUN mode

https://github.com/2dust/v2rayN/pull/7989
This commit is contained in:
2dust
2025-09-21 12:05:06 +08:00
parent ef30d389dc
commit 3a21596d95
4 changed files with 38 additions and 24 deletions
+2 -2
View File
@@ -1214,11 +1214,11 @@ public static class ConfigHandler
CoreType = ECoreType.sing_box,
ConfigType = EConfigType.SOCKS,
Address = Global.Loopback,
Sni = node.Address, //Tun2SocksAddress
SpiderX = node.Address, // Tun2SocksAddress
Port = AppManager.Instance.GetLocalPort(EInboundProtocol.socks)
};
}
else if ((node.ConfigType == EConfigType.Custom && node.PreSocksPort > 0))
else if (node.ConfigType == EConfigType.Custom && node.PreSocksPort > 0)
{
var preCoreType = config.RunningCoreType = config.TunModeItem.EnableTun ? ECoreType.sing_box : ECoreType.Xray;
itemSocks = new ProfileItem()