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
|
@ -636,6 +636,14 @@ namespace data
|
|||
m_Properties.erase (key);
|
||||
}
|
||||
|
||||
std::string RouterInfo::GetProperty (const std::string& key) const
|
||||
{
|
||||
auto it = m_Properties.find (key);
|
||||
if (it != m_Properties.end ())
|
||||
return it->second;
|
||||
return "";
|
||||
}
|
||||
|
||||
bool RouterInfo::IsNTCP (bool v4only) const
|
||||
{
|
||||
if (v4only)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue