mirror of
				https://github.com/PurpleI2P/i2pd.git
				synced 2025-11-04 08:30:46 +00:00 
			
		
		
		
	remove address string
This commit is contained in:
		
							parent
							
								
									d8a4954bf1
								
							
						
					
					
						commit
						aa27746982
					
				
					 2 changed files with 1 additions and 15 deletions
				
			
		| 
						 | 
				
			
			@ -208,20 +208,7 @@ namespace data
 | 
			
		|||
				{
 | 
			
		||||
					boost::system::error_code ecode;
 | 
			
		||||
					address->host = boost::asio::ip::address::from_string (value, ecode);
 | 
			
		||||
					if (ecode)
 | 
			
		||||
					{
 | 
			
		||||
						if (address->transportStyle == eTransportNTCP)
 | 
			
		||||
						{
 | 
			
		||||
							supportedTransports |= eNTCPV4; // TODO:
 | 
			
		||||
							address->addressString = value;
 | 
			
		||||
						}
 | 
			
		||||
						else
 | 
			
		||||
						{
 | 
			
		||||
							supportedTransports |= eSSUV4; // TODO:
 | 
			
		||||
							address->addressString = value;
 | 
			
		||||
						}
 | 
			
		||||
					}
 | 
			
		||||
					else
 | 
			
		||||
					if (!ecode)
 | 
			
		||||
					{
 | 
			
		||||
						// add supported protocol
 | 
			
		||||
						if (address->host.is_v4 ())
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -102,7 +102,6 @@ namespace data
 | 
			
		|||
			{
 | 
			
		||||
				TransportStyle transportStyle;
 | 
			
		||||
				boost::asio::ip::address host;
 | 
			
		||||
				std::string addressString;
 | 
			
		||||
				int port;
 | 
			
		||||
				uint64_t date;
 | 
			
		||||
				uint8_t cost;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue