mirror of
				https://github.com/PurpleI2P/i2pd.git
				synced 2025-11-04 08:30:46 +00:00 
			
		
		
		
	Use of 'server' type tunnel port as inport (#1936)
Signed-off-by: r4sas <r4sas@i2pmail.org>
This commit is contained in:
		
							parent
							
								
									52b2d6c393
								
							
						
					
					
						commit
						3af1f4bc76
					
				
					 2 changed files with 14 additions and 12 deletions
				
			
		| 
						 | 
					@ -27,6 +27,8 @@
 | 
				
			||||||
- Reload tunnels
 | 
					- Reload tunnels
 | 
				
			||||||
- Address caps for unspecified ipv6 address
 | 
					- Address caps for unspecified ipv6 address
 | 
				
			||||||
- Incomplete HTTP headers in I2P tunnels
 | 
					- Incomplete HTTP headers in I2P tunnels
 | 
				
			||||||
 | 
					- SSU2 socket network exceptions on Windows
 | 
				
			||||||
 | 
					- Use of 'server' type tunnel port as inport (#1936)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
## [2.47.0] - 2023-03-11
 | 
					## [2.47.0] - 2023-03-11
 | 
				
			||||||
### Added
 | 
					### Added
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -708,10 +708,10 @@ namespace client
 | 
				
			||||||
		int port, std::shared_ptr<ClientDestination> localDestination, int inport, bool gzip):
 | 
							int port, std::shared_ptr<ClientDestination> localDestination, int inport, bool gzip):
 | 
				
			||||||
		I2PService (localDestination), m_IsUniqueLocal(true), m_Name (name), m_Address (address), m_Port (port), m_IsAccessList (false)
 | 
							I2PService (localDestination), m_IsUniqueLocal(true), m_Name (name), m_Address (address), m_Port (port), m_IsAccessList (false)
 | 
				
			||||||
	{
 | 
						{
 | 
				
			||||||
		if (!inport) inport = port;	
 | 
							int inPort = (inport ? inport : port);
 | 
				
			||||||
		m_PortDestination = localDestination->GetStreamingDestination (inport);	
 | 
							m_PortDestination = localDestination->GetStreamingDestination (inPort);
 | 
				
			||||||
		if (!m_PortDestination) // default destination
 | 
							if (!m_PortDestination) // default destination
 | 
				
			||||||
			m_PortDestination = localDestination->CreateStreamingDestination (inport, gzip);
 | 
								m_PortDestination = localDestination->CreateStreamingDestination (inPort, gzip);
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	void I2PServerTunnel::Start ()
 | 
						void I2PServerTunnel::Start ()
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue