|
|
@ -149,6 +149,14 @@ namespace i2p |
|
|
|
UpdateRouterInfo (); |
|
|
|
UpdateRouterInfo (); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void RouterContext::SetFamilyString (const std::string& family) |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
if (family.length() > 0) |
|
|
|
|
|
|
|
m_FamilyString = family; |
|
|
|
|
|
|
|
else |
|
|
|
|
|
|
|
m_FamilyString = "<undefined>"; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
std::string RouterContext::GetFamilyString () const |
|
|
|
std::string RouterContext::GetFamilyString () const |
|
|
|
{ |
|
|
|
{ |
|
|
|
return m_FamilyString; |
|
|
|
return m_FamilyString; |
|
|
@ -157,15 +165,9 @@ namespace i2p |
|
|
|
void RouterContext::SetFamily (const std::string& family) |
|
|
|
void RouterContext::SetFamily (const std::string& family) |
|
|
|
{ |
|
|
|
{ |
|
|
|
|
|
|
|
|
|
|
|
m_FamilyString = family; |
|
|
|
|
|
|
|
if (m_FamilyString.length() == 0) |
|
|
|
|
|
|
|
m_FamilyString = "<undefined>"; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
std::string signature; |
|
|
|
std::string signature; |
|
|
|
if (family.length () > 0) |
|
|
|
if (family.length () > 0) |
|
|
|
{ |
|
|
|
|
|
|
|
signature = i2p::data::CreateFamilySignature (family, GetIdentHash ()); |
|
|
|
signature = i2p::data::CreateFamilySignature (family, GetIdentHash ()); |
|
|
|
} |
|
|
|
|
|
|
|
if (signature.length () > 0) |
|
|
|
if (signature.length () > 0) |
|
|
|
{ |
|
|
|
{ |
|
|
|
m_RouterInfo.SetProperty (i2p::data::ROUTER_INFO_PROPERTY_FAMILY, family); |
|
|
|
m_RouterInfo.SetProperty (i2p::data::ROUTER_INFO_PROPERTY_FAMILY, family); |
|
|
|