allow resolving of .b32.i2p addresses in SAM name lookup

This commit is contained in:
Jeff Becker 2016-02-05 16:17:53 -05:00
parent 0a5f8527b2
commit 3b268fe3cc
No known key found for this signature in database
GPG Key ID: AB950234D6EA286B

View File

@ -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 &&