From 194d63acd81a9af274ea1198470e1669320de6c5 Mon Sep 17 00:00:00 2001 From: Jeff Becker Date: Sun, 21 Aug 2016 19:17:08 -0400 Subject: [PATCH] fixes --- I2PTunnel.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/I2PTunnel.cpp b/I2PTunnel.cpp index c864fbc1..641c5795 100644 --- a/I2PTunnel.cpp +++ b/I2PTunnel.cpp @@ -534,7 +534,6 @@ namespace client for ( UDPSession & s : m_Sessions ) { if ( s.Identity == ih) { /** found existing */ - LogPrint(eLogDebug, "UDP Server: found ", s.SendEndpoint); return s; } } @@ -555,6 +554,7 @@ namespace client { Receive(); LogPrint(eLogDebug, "UDPSession: bound to ", IPSocket.local_endpoint()); + } @@ -569,11 +569,13 @@ namespace client if(!ecode) { LogPrint(eLogDebug, "UDPSession: forward ", len, "B from ", FromEndpoint); if (Destination) { - auto dgram = Destination->CreateDatagramDestination(); + auto dgram = Destination->GetDatagramDestination(); if(dgram) { LastActivity = i2p::util::GetMillisecondsSinceEpoch(); dgram->SendDatagramTo(m_Buffer, len, Identity, RemotePort, LocalPort); LogPrint(eLogDebug, "UDPSession: forward ", len, "B to ", Identity.ToBase32()); + } else { + LogPrint(eLogWarning, "UDPSession: no datagram destination"); } } else { LogPrint(eLogWarning, "UDPSession: no Local Destination");