mirror of
				https://github.com/PurpleI2P/i2pd.git
				synced 2025-11-04 08:30:46 +00:00 
			
		
		
		
	handle hostname for STREAM CREATE
This commit is contained in:
		
							parent
							
								
									e091eba831
								
							
						
					
					
						commit
						bd33ac202f
					
				
					 1 changed files with 3 additions and 4 deletions
				
			
		| 
						 | 
				
			
			@ -496,10 +496,9 @@ namespace client
 | 
			
		|||
			else
 | 
			
		||||
				m_BufferOffset = 0;
 | 
			
		||||
 | 
			
		||||
			std::shared_ptr<Address> addr;
 | 
			
		||||
			auto pos = destination.find(".b32.i2p");
 | 
			
		||||
			if (pos != std::string::npos)
 | 
			
		||||
				addr = std::make_shared<Address>(destination.substr (0, pos));
 | 
			
		||||
			std::shared_ptr<const Address> addr;
 | 
			
		||||
			if (destination.find(".i2p") != std::string::npos)
 | 
			
		||||
				addr = context.GetAddressBook().GetAddress (destination); 
 | 
			
		||||
			else
 | 
			
		||||
			{
 | 
			
		||||
				auto dest = std::make_shared<i2p::data::IdentityEx> ();
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue