mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2026-05-15 03:05:20 +00:00
Support v1 datagram sessions without port
This commit is contained in:
@@ -415,7 +415,7 @@ namespace client
|
||||
{
|
||||
session->UDPEndpoint = forward;
|
||||
auto dest = session->GetLocalDestination ()->CreateDatagramDestination ();
|
||||
auto port = std::stoi(params[SAM_PARAM_PORT]);
|
||||
auto port = forward ? std::stoi(params[SAM_PARAM_PORT]) : 0;
|
||||
if (type == eSAMSessionTypeDatagram)
|
||||
dest->SetReceiver (std::bind (&SAMSocket::HandleI2PDatagramReceive, shared_from_this (),
|
||||
std::placeholders::_1, std::placeholders::_2, std::placeholders::_3, std::placeholders::_4, std::placeholders::_5),
|
||||
|
||||
Reference in New Issue
Block a user