Skip to content

Commit

Permalink
don't recreate existing streaming destination
Browse files Browse the repository at this point in the history
  • Loading branch information
orignal committed Apr 3, 2023
1 parent b8032e7 commit 7c2da75
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions libi2pd_client/I2PTunnel.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2013-2022, The PurpleI2P Project
* Copyright (c) 2013-2023, The PurpleI2P Project
*
* This file is part of Purple i2pd project and licensed under BSD3
*
Expand Down Expand Up @@ -691,7 +691,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)
{
m_PortDestination = localDestination->CreateStreamingDestination (inport > 0 ? inport : port, gzip);
if (!inport) inport = port;
m_PortDestination = localDestination->GetStreamingDestination (inport);
if (!m_PortDestination)
m_PortDestination = localDestination->CreateStreamingDestination (inport, gzip);
}

void I2PServerTunnel::Start ()
Expand Down

0 comments on commit 7c2da75

Please sign in to comment.