mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2024-11-17 21:26:04 +00:00
fixes
This commit is contained in:
parent
46d640cd86
commit
194d63acd8
@ -534,7 +534,6 @@ namespace client
|
|||||||
for ( UDPSession & s : m_Sessions ) {
|
for ( UDPSession & s : m_Sessions ) {
|
||||||
if ( s.Identity == ih) {
|
if ( s.Identity == ih) {
|
||||||
/** found existing */
|
/** found existing */
|
||||||
LogPrint(eLogDebug, "UDP Server: found ", s.SendEndpoint);
|
|
||||||
return s;
|
return s;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -555,6 +554,7 @@ namespace client
|
|||||||
{
|
{
|
||||||
Receive();
|
Receive();
|
||||||
LogPrint(eLogDebug, "UDPSession: bound to ", IPSocket.local_endpoint());
|
LogPrint(eLogDebug, "UDPSession: bound to ", IPSocket.local_endpoint());
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -569,11 +569,13 @@ namespace client
|
|||||||
if(!ecode) {
|
if(!ecode) {
|
||||||
LogPrint(eLogDebug, "UDPSession: forward ", len, "B from ", FromEndpoint);
|
LogPrint(eLogDebug, "UDPSession: forward ", len, "B from ", FromEndpoint);
|
||||||
if (Destination) {
|
if (Destination) {
|
||||||
auto dgram = Destination->CreateDatagramDestination();
|
auto dgram = Destination->GetDatagramDestination();
|
||||||
if(dgram) {
|
if(dgram) {
|
||||||
LastActivity = i2p::util::GetMillisecondsSinceEpoch();
|
LastActivity = i2p::util::GetMillisecondsSinceEpoch();
|
||||||
dgram->SendDatagramTo(m_Buffer, len, Identity, RemotePort, LocalPort);
|
dgram->SendDatagramTo(m_Buffer, len, Identity, RemotePort, LocalPort);
|
||||||
LogPrint(eLogDebug, "UDPSession: forward ", len, "B to ", Identity.ToBase32());
|
LogPrint(eLogDebug, "UDPSession: forward ", len, "B to ", Identity.ToBase32());
|
||||||
|
} else {
|
||||||
|
LogPrint(eLogWarning, "UDPSession: no datagram destination");
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
LogPrint(eLogWarning, "UDPSession: no Local Destination");
|
LogPrint(eLogWarning, "UDPSession: no Local Destination");
|
||||||
|
Loading…
Reference in New Issue
Block a user