mirror of
				https://github.com/PurpleI2P/i2pd.git
				synced 2025-11-04 08:30:46 +00:00 
			
		
		
		
	i2p.streaming.answerPings=false by default for client tunnels
This commit is contained in:
		
							parent
							
								
									d218c9a983
								
							
						
					
					
						commit
						59032d515b
					
				
					 2 changed files with 5 additions and 5 deletions
				
			
		| 
						 | 
				
			
			@ -444,7 +444,7 @@ namespace client
 | 
			
		|||
	}
 | 
			
		||||
 | 
			
		||||
	template<typename Section>
 | 
			
		||||
	void ClientContext::ReadI2CPOptions (const Section& section, std::map<std::string, std::string>& options) const
 | 
			
		||||
	void ClientContext::ReadI2CPOptions (const Section& section, bool isServer, std::map<std::string, std::string>& options) const
 | 
			
		||||
	{
 | 
			
		||||
		options[I2CP_PARAM_INBOUND_TUNNEL_LENGTH] = GetI2CPOption (section, I2CP_PARAM_INBOUND_TUNNEL_LENGTH, DEFAULT_INBOUND_TUNNEL_LENGTH);
 | 
			
		||||
		options[I2CP_PARAM_OUTBOUND_TUNNEL_LENGTH] = GetI2CPOption (section, I2CP_PARAM_OUTBOUND_TUNNEL_LENGTH, DEFAULT_OUTBOUND_TUNNEL_LENGTH);
 | 
			
		||||
| 
						 | 
				
			
			@ -454,7 +454,7 @@ namespace client
 | 
			
		|||
		options[I2CP_PARAM_MIN_TUNNEL_LATENCY] = GetI2CPOption(section, I2CP_PARAM_MIN_TUNNEL_LATENCY, DEFAULT_MIN_TUNNEL_LATENCY);
 | 
			
		||||
		options[I2CP_PARAM_MAX_TUNNEL_LATENCY] = GetI2CPOption(section, I2CP_PARAM_MAX_TUNNEL_LATENCY, DEFAULT_MAX_TUNNEL_LATENCY);
 | 
			
		||||
		options[I2CP_PARAM_STREAMING_INITIAL_ACK_DELAY] = GetI2CPOption(section, I2CP_PARAM_STREAMING_INITIAL_ACK_DELAY, DEFAULT_INITIAL_ACK_DELAY);
 | 
			
		||||
		options[I2CP_PARAM_STREAMING_ANSWER_PINGS] = GetI2CPOption(section, I2CP_PARAM_STREAMING_ANSWER_PINGS, DEFAULT_ANSWER_PINGS);
 | 
			
		||||
		options[I2CP_PARAM_STREAMING_ANSWER_PINGS] = GetI2CPOption(section, I2CP_PARAM_STREAMING_ANSWER_PINGS, isServer ? DEFAULT_ANSWER_PINGS : false);
 | 
			
		||||
		options[I2CP_PARAM_LEASESET_TYPE] = GetI2CPOption(section, I2CP_PARAM_LEASESET_TYPE, DEFAULT_LEASESET_TYPE);
 | 
			
		||||
		std::string encType = GetI2CPStringOption(section, I2CP_PARAM_LEASESET_ENCRYPTION_TYPE, "");
 | 
			
		||||
		if (encType.length () > 0) options[I2CP_PARAM_LEASESET_ENCRYPTION_TYPE] = encType;
 | 
			
		||||
| 
						 | 
				
			
			@ -570,7 +570,7 @@ namespace client
 | 
			
		|||
					i2p::data::CryptoKeyType cryptoType = section.second.get (I2P_CLIENT_TUNNEL_CRYPTO_TYPE, i2p::data::CRYPTO_KEY_TYPE_ELGAMAL);
 | 
			
		||||
					// I2CP
 | 
			
		||||
					std::map<std::string, std::string> options;
 | 
			
		||||
					ReadI2CPOptions (section, options);
 | 
			
		||||
					ReadI2CPOptions (section, false, options);
 | 
			
		||||
 | 
			
		||||
					std::shared_ptr<ClientDestination> localDestination = nullptr;
 | 
			
		||||
					if (keys.length () > 0)
 | 
			
		||||
| 
						 | 
				
			
			@ -694,7 +694,7 @@ namespace client
 | 
			
		|||
 | 
			
		||||
					// I2CP
 | 
			
		||||
					std::map<std::string, std::string> options;
 | 
			
		||||
					ReadI2CPOptions (section, options);
 | 
			
		||||
					ReadI2CPOptions (section, true, options);
 | 
			
		||||
 | 
			
		||||
					std::shared_ptr<ClientDestination> localDestination = nullptr;
 | 
			
		||||
					auto it = destinations.find (keys);
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -115,7 +115,7 @@ namespace client
 | 
			
		|||
			template<typename Section>
 | 
			
		||||
			void ReadI2CPOptionsGroup (const Section& section, const std::string& group,  std::map<std::string, std::string>& options) const;
 | 
			
		||||
			template<typename Section>
 | 
			
		||||
			void ReadI2CPOptions (const Section& section, std::map<std::string, std::string>& options) const; // for tunnels
 | 
			
		||||
			void ReadI2CPOptions (const Section& section, bool isServer, std::map<std::string, std::string>& options) const; // for tunnels
 | 
			
		||||
			void ReadI2CPOptionsFromConfig (const std::string& prefix, std::map<std::string, std::string>& options) const; // for HTTP and SOCKS proxy
 | 
			
		||||
 | 
			
		||||
			void CleanupUDP(const boost::system::error_code & ecode);
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue