mirror of
				https://github.com/PurpleI2P/i2pd.git
				synced 2025-11-04 08:30:46 +00:00 
			
		
		
		
	check connectivity between peers for tunnel
This commit is contained in:
		
							parent
							
								
									6d88c3ab05
								
							
						
					
					
						commit
						f70ee480ba
					
				
					 8 changed files with 54 additions and 34 deletions
				
			
		| 
						 | 
				
			
			@ -1,5 +1,5 @@
 | 
			
		|||
/*
 | 
			
		||||
* Copyright (c) 2013-2020, The PurpleI2P Project
 | 
			
		||||
* Copyright (c) 2013-2021, The PurpleI2P Project
 | 
			
		||||
*
 | 
			
		||||
* This file is part of Purple i2pd project and licensed under BSD3
 | 
			
		||||
*
 | 
			
		||||
| 
						 | 
				
			
			@ -72,7 +72,8 @@ namespace client
 | 
			
		|||
	bool MatchedTunnelDestination::SelectPeers(i2p::tunnel::Path & path, int hops, bool inbound)
 | 
			
		||||
	{
 | 
			
		||||
		auto pool = GetTunnelPool();
 | 
			
		||||
		if(!i2p::tunnel::StandardSelectPeers(path, hops, inbound, std::bind(&i2p::tunnel::TunnelPool::SelectNextHop, pool, std::placeholders::_1)))
 | 
			
		||||
		if(!i2p::tunnel::StandardSelectPeers(path, hops, inbound, 
 | 
			
		||||
			std::bind(&i2p::tunnel::TunnelPool::SelectNextHop, pool, std::placeholders::_1, std::placeholders::_2)))
 | 
			
		||||
			return false;
 | 
			
		||||
		// more here for outbound tunnels
 | 
			
		||||
		if(!inbound && m_RemoteLeaseSet)
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue