mirror of
				https://github.com/2dust/v2rayN.git
				synced 2025-10-31 20:42:52 +00:00 
			
		
		
		
	Update V2rayConfigHandler.cs
This commit is contained in:
		
							parent
							
								
									a370f7bfbb
								
							
						
					
					
						commit
						b20c90acf0
					
				
					 1 changed files with 12 additions and 8 deletions
				
			
		|  | @ -470,6 +470,15 @@ namespace v2rayN.Handler | |||
|                     usersItem.flow = string.Empty; | ||||
|                     usersItem.email = Global.userEMail; | ||||
|                     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 (config.streamSecurity() == Global.StreamSecurityX) | ||||
|                     { | ||||
|  | @ -481,16 +490,11 @@ namespace v2rayN.Handler | |||
|                         { | ||||
|                             usersItem.flow = config.flow(); | ||||
|                         } | ||||
|                          | ||||
|                         outbound.mux.enabled = false; | ||||
|                         outbound.mux.concurrency = -1; | ||||
|                     } | ||||
| 
 | ||||
|                     //Mux | ||||
|                     outbound.mux.enabled = config.muxEnabled; | ||||
|                     outbound.mux.concurrency = config.muxEnabled ? 8 : -1; | ||||
| 
 | ||||
|                     //远程服务器底层传输配置 | ||||
|                     StreamSettings streamSettings = outbound.streamSettings; | ||||
|                     boundStreamSettings(config, "out", ref streamSettings); | ||||
| 
 | ||||
|                     outbound.protocol = Global.vlessProtocolLite; | ||||
|                     outbound.settings.servers = null; | ||||
|                 } | ||||
|  |  | |||
		Loading…
	
		Reference in a new issue
	
	 2dust
						2dust