Skip to content

Commit

Permalink
create non-default port destination explicitly
Browse files Browse the repository at this point in the history
  • Loading branch information
orignal committed Apr 12, 2023
1 parent 4ebc7c9 commit b8d21a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libi2pd_client/I2PTunnel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -693,7 +693,7 @@ namespace client
{
if (!inport) inport = port;
m_PortDestination = localDestination->GetStreamingDestination (inport);
if (!m_PortDestination)
if (!m_PortDestination || (inport && (m_PortDestination == localDestination->GetStreamingDestination ()))) // default destination
m_PortDestination = localDestination->CreateStreamingDestination (inport, gzip);
}

Expand Down

0 comments on commit b8d21a1

Please sign in to comment.