mirror of
				https://github.com/2dust/v2rayN.git
				synced 2025-11-03 22:12:52 +00:00 
			
		
		
		
	fix bug
This commit is contained in:
		
							parent
							
								
									0e55a859ea
								
							
						
					
					
						commit
						2d8a707bed
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -158,19 +158,19 @@ namespace v2rayN.Handler
 | 
			
		|||
                if (config.inbound[0].allowLANConn)
 | 
			
		||||
                {
 | 
			
		||||
                    Inbounds inbound3 = GetInbound(config.inbound[0], Global.InboundSocks2, 2, true);
 | 
			
		||||
                    inbound3.listen = "0.0.0.0";
 | 
			
		||||
                    v2rayConfig.inbounds.Add(inbound3);
 | 
			
		||||
 | 
			
		||||
                    Inbounds inbound4 = GetInbound(config.inbound[0], Global.InboundHttp2, 3, false);
 | 
			
		||||
                    inbound4.listen = "0.0.0.0";
 | 
			
		||||
                    v2rayConfig.inbounds.Add(inbound4);
 | 
			
		||||
 | 
			
		||||
                    //auth
 | 
			
		||||
                    if (!Utils.IsNullOrEmpty(config.inbound[0].user) && !Utils.IsNullOrEmpty(config.inbound[0].pass))
 | 
			
		||||
                    {
 | 
			
		||||
                        inbound3.listen = "0.0.0.0";
 | 
			
		||||
                        inbound3.settings.auth = "password";
 | 
			
		||||
                        inbound3.settings.accounts = new List<AccountsItem> { new AccountsItem() { user = config.inbound[0].user, pass = config.inbound[0].pass } };
 | 
			
		||||
 | 
			
		||||
                        inbound4.listen = "0.0.0.0";
 | 
			
		||||
                        inbound4.settings.auth = "password";
 | 
			
		||||
                        inbound4.settings.accounts = new List<AccountsItem> { new AccountsItem() { user = config.inbound[0].user, pass = config.inbound[0].pass } };
 | 
			
		||||
                    }
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in a new issue