mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-28 11:47:48 +02:00
don't return default destination if port is specified explicitly
This commit is contained in:
parent
b8d21a1282
commit
132557f941
2 changed files with 5 additions and 3 deletions
|
@ -1083,6 +1083,7 @@ namespace client
|
|||
{
|
||||
// streaming protocol
|
||||
auto dest = GetStreamingDestination (toPort);
|
||||
if (!dest) dest = m_StreamingDestination; // if no destination on port use default
|
||||
if (dest)
|
||||
dest->HandleDataMessagePayload (buf, length);
|
||||
else
|
||||
|
@ -1236,8 +1237,9 @@ namespace client
|
|||
if (it != m_StreamingDestinationsByPorts.end ())
|
||||
return it->second;
|
||||
}
|
||||
// if port is zero or not found, use default destination
|
||||
return m_StreamingDestination;
|
||||
else // if port is zero, use default destination
|
||||
return m_StreamingDestination;
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
void ClientDestination::AcceptStreams (const i2p::stream::StreamingDestination::Acceptor& acceptor)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue