mirror of
				https://github.com/2dust/v2rayN.git
				synced 2025-11-03 22:12:52 +00:00 
			
		
		
		
	Update ConfigHandler.cs
This commit is contained in:
		
							parent
							
								
									3af13d64f3
								
							
						
					
					
						commit
						957ffa203d
					
				
					 1 changed files with 5 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -196,8 +196,7 @@ namespace v2rayN.Handler
 | 
			
		|||
            vmessItem.headerType = vmessItem.headerType.TrimEx();
 | 
			
		||||
            vmessItem.requestHost = vmessItem.requestHost.TrimEx();
 | 
			
		||||
            vmessItem.path = vmessItem.path.TrimEx();
 | 
			
		||||
            vmessItem.streamSecurity = vmessItem.streamSecurity.TrimEx();
 | 
			
		||||
            vmessItem.allowInsecure = config.defaultAllowInsecure;
 | 
			
		||||
            vmessItem.streamSecurity = vmessItem.streamSecurity.TrimEx();           
 | 
			
		||||
 | 
			
		||||
            if (index >= 0)
 | 
			
		||||
            {
 | 
			
		||||
| 
						 | 
				
			
			@ -211,6 +210,10 @@ namespace v2rayN.Handler
 | 
			
		|||
            else
 | 
			
		||||
            {
 | 
			
		||||
                //添加
 | 
			
		||||
                if (Utils.IsNullOrEmpty(vmessItem.allowInsecure))
 | 
			
		||||
                {
 | 
			
		||||
                    vmessItem.allowInsecure = config.defaultAllowInsecure;
 | 
			
		||||
                }
 | 
			
		||||
                config.vmess.Add(vmessItem);
 | 
			
		||||
                if (config.vmess.Count == 1)
 | 
			
		||||
                {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in a new issue