Browse Source

create non-default port destination explicitly

debian
orignal 2 years ago
parent
commit
b8d21a1282
  1. 2
      libi2pd_client/I2PTunnel.cpp

2
libi2pd_client/I2PTunnel.cpp

@ -693,7 +693,7 @@ namespace client
{ {
if (!inport) inport = port; if (!inport) inport = port;
m_PortDestination = localDestination->GetStreamingDestination (inport); m_PortDestination = localDestination->GetStreamingDestination (inport);
if (!m_PortDestination) if (!m_PortDestination || (inport && (m_PortDestination == localDestination->GetStreamingDestination ()))) // default destination
m_PortDestination = localDestination->CreateStreamingDestination (inport, gzip); m_PortDestination = localDestination->CreateStreamingDestination (inport, gzip);
} }

Loading…
Cancel
Save