mirror of
				https://github.com/PurpleI2P/i2pd.git
				synced 2025-11-04 08:30:46 +00:00 
			
		
		
		
	catch error 10045 on stopping SAM acceptor (#1233), fix warning in util
This commit is contained in:
		
							parent
							
								
									a14d554947
								
							
						
					
					
						commit
						f5f4190803
					
				
					 2 changed files with 12 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -203,7 +203,9 @@ namespace net
 | 
			
		|||
#endif
 | 
			
		||||
 | 
			
		||||
		if (IsWindowsXPorLater())
 | 
			
		||||
		{
 | 
			
		||||
			#define inet_pton inet_pton_xp
 | 
			
		||||
		}
 | 
			
		||||
 | 
			
		||||
		if(localAddress.is_v4())
 | 
			
		||||
		{
 | 
			
		||||
| 
						 | 
				
			
			@ -220,7 +222,6 @@ namespace net
 | 
			
		|||
			LogPrint(eLogError, "NetIface: GetMTU(): address family is not supported");
 | 
			
		||||
			return fallback;
 | 
			
		||||
		}
 | 
			
		||||
 | 
			
		||||
	}
 | 
			
		||||
#else // assume unix
 | 
			
		||||
	int GetMTUUnix(const boost::asio::ip::address& localAddress, int fallback)
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue