mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-03-07 06:09:42 +00:00
get family string from local RouterInfo
This commit is contained in:
@@ -149,17 +149,9 @@ namespace i2p
|
||||
UpdateRouterInfo ();
|
||||
}
|
||||
|
||||
void RouterContext::SetFamilyString (const std::string& family)
|
||||
std::string RouterContext::GetFamily () const
|
||||
{
|
||||
if (family.length() > 0)
|
||||
m_FamilyString = family;
|
||||
else
|
||||
m_FamilyString = "<undefined>";
|
||||
}
|
||||
|
||||
std::string RouterContext::GetFamilyString () const
|
||||
{
|
||||
return m_FamilyString;
|
||||
return m_RouterInfo.GetProperty (i2p::data::ROUTER_INFO_PROPERTY_FAMILY);
|
||||
}
|
||||
|
||||
void RouterContext::SetFamily (const std::string& family)
|
||||
|
||||
Reference in New Issue
Block a user