mirror of
				https://github.com/PurpleI2P/i2pd.git
				synced 2025-11-04 08:30:46 +00:00 
			
		
		
		
	[windows] fix msys build
Signed-off-by: R4SAS <r4sas@i2pmail.org>
This commit is contained in:
		
							parent
							
								
									23be4c01df
								
							
						
					
					
						commit
						b5b195e628
					
				
					 2 changed files with 3 additions and 3 deletions
				
			
		| 
						 | 
				
			
			@ -69,15 +69,15 @@ namespace client
 | 
			
		|||
		return ourIP;
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
#ifdef __linux__
 | 
			
		||||
	static void MapToLoopback(const std::shared_ptr<boost::asio::ip::tcp::socket> & sock, const i2p::data::IdentHash & addr)
 | 
			
		||||
	{
 | 
			
		||||
 | 
			
		||||
		// bind to 127.x.x.x address
 | 
			
		||||
		// where x.x.x are first three bytes from ident
 | 
			
		||||
		auto ourIP = GetLoopbackAddressFor(addr);
 | 
			
		||||
		sock->bind (boost::asio::ip::tcp::endpoint (ourIP, 0));
 | 
			
		||||
 | 
			
		||||
	}
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
	void I2PTunnelConnection::Connect (bool isUniqueLocal)
 | 
			
		||||
	{
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue