|
|
@ -469,7 +469,7 @@ namespace client |
|
|
|
{ |
|
|
|
{ |
|
|
|
LogPrint (eLogDebug, "BOB: lookup ", operand); |
|
|
|
LogPrint (eLogDebug, "BOB: lookup ", operand); |
|
|
|
i2p::data::IdentHash ident; |
|
|
|
i2p::data::IdentHash ident; |
|
|
|
if (!context.GetAddressBook ().GetIdentHash (operand, ident) && !m_CurrentDestination) |
|
|
|
if (!context.GetAddressBook ().GetIdentHash (operand, ident) || !m_CurrentDestination) |
|
|
|
{ |
|
|
|
{ |
|
|
|
SendReplyError ("Address Not found"); |
|
|
|
SendReplyError ("Address Not found"); |
|
|
|
return; |
|
|
|
return; |
|
|
@ -481,8 +481,8 @@ namespace client |
|
|
|
else |
|
|
|
else |
|
|
|
{ |
|
|
|
{ |
|
|
|
auto s = shared_from_this (); |
|
|
|
auto s = shared_from_this (); |
|
|
|
m_CurrentDestination->GetLocalDestination ()->RequestDestination (ident, |
|
|
|
localDestination->RequestDestination (ident, |
|
|
|
[s, localDestination](std::shared_ptr<i2p::data::LeaseSet> ls) |
|
|
|
[s](std::shared_ptr<i2p::data::LeaseSet> ls) |
|
|
|
{ |
|
|
|
{ |
|
|
|
if (ls) |
|
|
|
if (ls) |
|
|
|
s->SendReplyOK (ls->GetIdentity ().ToBase64 ().c_str ()); |
|
|
|
s->SendReplyOK (ls->GetIdentity ().ToBase64 ().c_str ()); |
|
|
|