mirror of
https://github.com/PurpleI2P/i2pd
synced 2024-11-10 08:00:38 +03:00
fix
This commit is contained in:
parent
1d7d7cf9a0
commit
e8195b78ba
@ -571,7 +571,7 @@ namespace client
|
|||||||
uint8_t * data = new uint8_t[len];
|
uint8_t * data = new uint8_t[len];
|
||||||
memcpy(data, m_Buffer, len);
|
memcpy(data, m_Buffer, len);
|
||||||
m_Service.post([&,len, data] () {
|
m_Service.post([&,len, data] () {
|
||||||
m_Destination->SendDatagramTo(data, len, Identity, LocalPort, RemotePort);
|
m_Destination->SendDatagramTo(data, len, Identity, 0, 0);
|
||||||
delete [] data;
|
delete [] data;
|
||||||
});
|
});
|
||||||
|
|
||||||
@ -597,7 +597,7 @@ namespace client
|
|||||||
{
|
{
|
||||||
auto dgram = m_LocalDest->GetDatagramDestination();
|
auto dgram = m_LocalDest->GetDatagramDestination();
|
||||||
if (dgram) {
|
if (dgram) {
|
||||||
dgram->ResetReceiver(LocalPort);
|
dgram->ResetReceiver(0);
|
||||||
}
|
}
|
||||||
LogPrint(eLogInfo, "UDPServer: done");
|
LogPrint(eLogInfo, "UDPServer: done");
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user