Browse Source

Merge pull request #368 from majestrate/fix_sam_b32_naming

allow resolving of .b32.i2p addresses in SAM name lookup
pull/370/head
orignal 9 years ago
parent
commit
88a43bfc28
  1. 2
      SAM.cpp

2
SAM.cpp

@ -468,6 +468,8 @@ namespace client @@ -468,6 +468,8 @@ namespace client
i2p::data::IdentHash ident;
if (name == "ME")
SendNamingLookupReply (m_Session->localDestination->GetIdentity ());
else if (name.rfind(".b32.i2p") == 52)
ident.FromBase32(name.substr(0, 52));
else if ((identity = context.GetAddressBook ().GetAddress (name)) != nullptr)
SendNamingLookupReply (identity);
else if (m_Session && m_Session->localDestination &&

Loading…
Cancel
Save