This commit is contained in:
Jeff Becker 2016-08-21 21:28:24 -04:00
parent 7b5e18d94b
commit da82b14307
No known key found for this signature in database
GPG Key ID: AB950234D6EA286B
2 changed files with 2 additions and 2 deletions

View File

@ -569,7 +569,7 @@ namespace client
LogPrint(eLogDebug, "UDPSesssion: HandleRecveived");
if(!ecode) {
LogPrint(eLogDebug, "UDPSession: forward ", len, "B from ", FromEndpoint);
auto dgram = m_Destination->GetDatagramDestination();
auto dgram = m_Destination.get()->GetDatagramDestination();
if(dgram) {
LastActivity = i2p::util::GetMillisecondsSinceEpoch();
dgram->SendDatagramTo(m_Buffer, len, Identity, 0, 0);

View File

@ -136,7 +136,7 @@ namespace client
const uint64_t I2P_UDP_SESSION_TIMEOUT = 1000 * 60 * 2;
/** max size for i2p udp */
const size_t I2P_UDP_MAX_MTU = i2p::datagram::MAX_DATAGRAM_SIZE;
const size_t I2P_UDP_MAX_MTU = 4000;
struct UDPSession
{