handle DEST GENERATE

This commit is contained in:
orignal 2014-09-30 11:08:38 -04:00
parent 34cb17afb1
commit ba96288438
3 changed files with 43 additions and 8 deletions

View file

@ -742,7 +742,10 @@ namespace stream
{
auto it = m_Destinations.find (keys.GetPublic ().GetIdentHash ());
if (it != m_Destinations.end ())
{
LogPrint ("Local destination ", keys.GetPublic ().GetIdentHash ().ToBase32 (), ".b32.i2p exists");
return it->second;
}
auto localDestination = new StreamingDestination (m_Service, keys, isPublic);
m_Destinations[keys.GetPublic ().GetIdentHash ()] = localDestination;
return localDestination;