This commit is contained in:
DHR60 2026-02-05 18:02:17 +08:00
parent e2cd3069f0
commit fe33c0e0e6
3 changed files with 54 additions and 52 deletions

View file

@ -295,6 +295,7 @@ public sealed class AppManager
MultipleLoad = groupItem.MultipleLoad, MultipleLoad = groupItem.MultipleLoad,
}; };
} }
}
switch (item.ConfigType) switch (item.ConfigType)
{ {
@ -312,6 +313,7 @@ public sealed class AppManager
extra = extra with extra = extra with
{ {
Flow = item.Flow.NullIfEmpty(), Flow = item.Flow.NullIfEmpty(),
VlessEncryption = item.Security,
}; };
break; break;
case EConfigType.Hysteria2: case EConfigType.Hysteria2:
@ -341,7 +343,8 @@ public sealed class AppManager
WgMtu = int.TryParse(item.ShortId, out var mtu) ? mtu : 1280 WgMtu = int.TryParse(item.ShortId, out var mtu) ? mtu : 1280
}; };
break; break;
} default:
break;
} }
item.SetProtocolExtra(extra); item.SetProtocolExtra(extra);

View file

@ -114,13 +114,13 @@ public partial class CoreConfigSingboxService
outbound.packet_encoding = "xudp"; outbound.packet_encoding = "xudp";
if (protocolExtra.Flow.IsNullOrEmpty()) if (!protocolExtra.Flow.IsNullOrEmpty())
{ {
await GenOutboundMux(node, outbound); outbound.flow = protocolExtra.Flow;
} }
else else
{ {
outbound.flow = protocolExtra.Flow; await GenOutboundMux(node, outbound);
} }
await GenOutboundTransport(node, outbound); await GenOutboundTransport(node, outbound);

View file

@ -144,13 +144,12 @@ public partial class CoreConfigV2rayService
usersItem.email = Global.UserEMail; usersItem.email = Global.UserEMail;
usersItem.encryption = protocolExtra.VlessEncryption; usersItem.encryption = protocolExtra.VlessEncryption;
if (protocolExtra.Flow.IsNullOrEmpty()) if (!protocolExtra.Flow.IsNullOrEmpty())
{ {
await GenOutboundMux(node, outbound, muxEnabled, muxEnabled); usersItem.flow = protocolExtra.Flow;
} }
else else
{ {
usersItem.flow = protocolExtra.Flow;
await GenOutboundMux(node, outbound, false, muxEnabled); await GenOutboundMux(node, outbound, false, muxEnabled);
} }
outbound.settings.servers = null; outbound.settings.servers = null;