mirror of
				https://github.com/PurpleI2P/i2pd.git
				synced 2025-11-04 08:30:46 +00:00 
			
		
		
		
	rename ipv6 transports
This commit is contained in:
		
							parent
							
								
									5e110e9f7b
								
							
						
					
					
						commit
						f1fb42460a
					
				
					 1 changed files with 7 additions and 5 deletions
				
			
		| 
						 | 
				
			
			@ -262,7 +262,9 @@ namespace http {
 | 
			
		|||
			{
 | 
			
		||||
				if (address->IsNTCP2 () && !address->IsPublishedNTCP2 ())
 | 
			
		||||
				{
 | 
			
		||||
					s << "NTCP2   supported <br>\r\n";
 | 
			
		||||
					s << "NTCP2";
 | 
			
		||||
					if (address->host.is_v6 ()) s << "v6";
 | 
			
		||||
					s << "   supported <br>\r\n";
 | 
			
		||||
					continue;
 | 
			
		||||
				}
 | 
			
		||||
				switch (address->transportStyle)
 | 
			
		||||
| 
						 | 
				
			
			@ -271,13 +273,13 @@ namespace http {
 | 
			
		|||
					{
 | 
			
		||||
						s << "NTCP";
 | 
			
		||||
						if (address->IsPublishedNTCP2 ()) s << "2";
 | 
			
		||||
						if (address->host.is_v6 ()) s << "6";
 | 
			
		||||
						if (address->host.is_v6 ()) s << "v6";
 | 
			
		||||
						s << "  ";
 | 
			
		||||
						break;
 | 
			
		||||
					}
 | 
			
		||||
					case i2p::data::RouterInfo::eTransportSSU:
 | 
			
		||||
						if (address->host.is_v6 ())
 | 
			
		||||
							s << "SSU6     ";
 | 
			
		||||
							s << "SSUv6     ";
 | 
			
		||||
						else
 | 
			
		||||
							s << "SSU     ";
 | 
			
		||||
					break;
 | 
			
		||||
| 
						 | 
				
			
			@ -583,7 +585,7 @@ namespace http {
 | 
			
		|||
		}
 | 
			
		||||
		if (!tmp_s6.str ().empty ())
 | 
			
		||||
		{
 | 
			
		||||
			s << "<div class='slide'><label for='slide_ntcp6'><b>" << name << "6</b> ( " << cnt6 << " )</label>\r\n<input type='checkbox' id='slide_ntcp6'/>\r\n<p class='content'>";
 | 
			
		||||
			s << "<div class='slide'><label for='slide_" << boost::algorithm::to_lower_copy(name) << "v6'><b>" << name << "6</b> ( " << cnt6 << " )</label>\r\n<input type='checkbox' id='slide_" << boost::algorithm::to_lower_copy(name) << "v6'/>\r\n<p class='content'>";
 | 
			
		||||
			s << tmp_s6.str () << "</p>\r\n</div>\r\n";
 | 
			
		||||
		}
 | 
			
		||||
	}
 | 
			
		||||
| 
						 | 
				
			
			@ -628,7 +630,7 @@ namespace http {
 | 
			
		|||
			auto sessions6 = ssuServer->GetSessionsV6 ();
 | 
			
		||||
			if (!sessions6.empty ())
 | 
			
		||||
			{
 | 
			
		||||
				s << "<div class='slide'><label for='slide_ssu6'><b>SSU6</b> ( " << (int) sessions6.size() << " )</label>\r\n<input type='checkbox' id='slide_ssu6'/>\r\n<p class='content'>";
 | 
			
		||||
				s << "<div class='slide'><label for='slide_ssuv6'><b>SSUv6</b> ( " << (int) sessions6.size() << " )</label>\r\n<input type='checkbox' id='slide_ssuv6'/>\r\n<p class='content'>";
 | 
			
		||||
				for (const auto& it: sessions6)
 | 
			
		||||
				{
 | 
			
		||||
					auto endpoint = it.second->GetRemoteEndpoint ();
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue