mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-27 11:17:49 +02:00
get family string from local RouterInfo
This commit is contained in:
parent
c5f2890cbe
commit
5e2dc14dd5
6 changed files with 15 additions and 15 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue