mirror of
				https://github.com/PurpleI2P/i2pd.git
				synced 2025-11-04 00:20:46 +00:00 
			
		
		
		
	rekey all routers but floodfills
This commit is contained in:
		
							parent
							
								
									4018cf9d76
								
							
						
					
					
						commit
						d8d8a68814
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		| 
						 | 
					@ -740,8 +740,8 @@ namespace i2p
 | 
				
			||||||
		if (!rekey && m_Keys.GetPublic ()->GetCryptoKeyType () == i2p::data::CRYPTO_KEY_TYPE_ELGAMAL)
 | 
							if (!rekey && m_Keys.GetPublic ()->GetCryptoKeyType () == i2p::data::CRYPTO_KEY_TYPE_ELGAMAL)
 | 
				
			||||||
		{
 | 
							{
 | 
				
			||||||
			// rekey routers with bandwidth = L (or default) this time
 | 
								// rekey routers with bandwidth = L (or default) this time
 | 
				
			||||||
			std::string bandwidth; i2p::config::GetOption("bandwidth", bandwidth);
 | 
								bool isFloodfill; i2p::config::GetOption("floodfill", isFloodfill);
 | 
				
			||||||
			if (bandwidth.empty () || bandwidth[0] == 'L') rekey = true;
 | 
								if (!isFloodfill) rekey = true;
 | 
				
			||||||
		}	
 | 
							}	
 | 
				
			||||||
		if (rekey)
 | 
							if (rekey)
 | 
				
			||||||
		{
 | 
							{
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue