mirror of
				https://github.com/PurpleI2P/i2pd.git
				synced 2025-11-04 08:30:46 +00:00 
			
		
		
		
	open socket before bing
This commit is contained in:
		
							parent
							
								
									bef9a54f4a
								
							
						
					
					
						commit
						8bab4f60ef
					
				
					 1 changed files with 4 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -111,6 +111,10 @@ namespace client
 | 
			
		|||
	{
 | 
			
		||||
		if (m_Socket)
 | 
			
		||||
		{
 | 
			
		||||
			if (m_RemoteEndpoint.address().is_v6 ())
 | 
			
		||||
				m_Socket->open (boost::asio::ip::tcp::v6 ());
 | 
			
		||||
			else
 | 
			
		||||
				m_Socket->open (boost::asio::ip::tcp::v4 ());
 | 
			
		||||
			boost::system::error_code ec;
 | 
			
		||||
			m_Socket->bind (boost::asio::ip::tcp::endpoint (localAddress, 0), ec);
 | 
			
		||||
			if (ec)
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue