Update V2rayConfigHandler.cs

pull/1044/head 3.25
2dust 4 years ago
parent a370f7bfbb
commit b20c90acf0

@ -470,6 +470,15 @@ namespace v2rayN.Handler
usersItem.flow = string.Empty; usersItem.flow = string.Empty;
usersItem.email = Global.userEMail; usersItem.email = Global.userEMail;
usersItem.encryption = config.security(); usersItem.encryption = config.security();
//Mux
outbound.mux.enabled = config.muxEnabled;
outbound.mux.concurrency = config.muxEnabled ? 8 : -1;
//远程服务器底层传输配置
StreamSettings streamSettings = outbound.streamSettings;
boundStreamSettings(config, "out", ref streamSettings);
//if xtls //if xtls
if (config.streamSecurity() == Global.StreamSecurityX) if (config.streamSecurity() == Global.StreamSecurityX)
{ {
@ -481,15 +490,10 @@ namespace v2rayN.Handler
{ {
usersItem.flow = config.flow(); usersItem.flow = config.flow();
} }
}
//Mux outbound.mux.enabled = false;
outbound.mux.enabled = config.muxEnabled; outbound.mux.concurrency = -1;
outbound.mux.concurrency = config.muxEnabled ? 8 : -1; }
//远程服务器底层传输配置
StreamSettings streamSettings = outbound.streamSettings;
boundStreamSettings(config, "out", ref streamSettings);
outbound.protocol = Global.vlessProtocolLite; outbound.protocol = Global.vlessProtocolLite;
outbound.settings.servers = null; outbound.settings.servers = null;

Loading…
Cancel
Save