Browse Source

Use of 'server' type tunnel port as inport (#1936)

Signed-off-by: r4sas <r4sas@i2pmail.org>
pull/1938/head
R4SAS 12 months ago
parent
commit
3af1f4bc76
Signed by: r4sas
GPG Key ID: 66F6C87B98EBCFE2
  1. 2
      ChangeLog
  2. 6
      libi2pd_client/I2PTunnel.cpp

2
ChangeLog

@ -27,6 +27,8 @@ @@ -27,6 +27,8 @@
- Reload tunnels
- Address caps for unspecified ipv6 address
- 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
### Added

6
libi2pd_client/I2PTunnel.cpp

@ -708,10 +708,10 @@ namespace client @@ -708,10 +708,10 @@ namespace client
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)
{
if (!inport) inport = port;
m_PortDestination = localDestination->GetStreamingDestination (inport);
int inPort = (inport ? inport : port);
m_PortDestination = localDestination->GetStreamingDestination (inPort);
if (!m_PortDestination) // default destination
m_PortDestination = localDestination->CreateStreamingDestination (inport, gzip);
m_PortDestination = localDestination->CreateStreamingDestination (inPort, gzip);
}
void I2PServerTunnel::Start ()

Loading…
Cancel
Save