mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-03-07 06:09:42 +00:00
update router caps
This commit is contained in:
@@ -1498,7 +1498,9 @@ namespace data
|
|||||||
|
|
||||||
void LocalRouterInfo::SetProperty (std::string_view key, std::string_view value)
|
void LocalRouterInfo::SetProperty (std::string_view key, std::string_view value)
|
||||||
{
|
{
|
||||||
m_Properties.emplace (key, value);
|
auto [it, inserted] = m_Properties.emplace (key, value);
|
||||||
|
if (!inserted)
|
||||||
|
it->second = value;
|
||||||
}
|
}
|
||||||
|
|
||||||
void LocalRouterInfo::DeleteProperty (const std::string& key)
|
void LocalRouterInfo::DeleteProperty (const std::string& key)
|
||||||
|
|||||||
Reference in New Issue
Block a user