mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-02-08 22:13:48 +01:00
send correct RouterInfo statistics
This commit is contained in:
parent
16596c18fb
commit
196d7e8f72
1 changed files with 3 additions and 1 deletions
|
@ -398,11 +398,13 @@ namespace client
|
||||||
LogPrint (eLogDebug, "I2PControl RouterInfo");
|
LogPrint (eLogDebug, "I2PControl RouterInfo");
|
||||||
for (auto it = params.begin (); it != params.end (); it++)
|
for (auto it = params.begin (); it != params.end (); it++)
|
||||||
{
|
{
|
||||||
if (it != params.begin ()) results << ",";
|
|
||||||
LogPrint (eLogDebug, it->first);
|
LogPrint (eLogDebug, it->first);
|
||||||
auto it1 = m_RouterInfoHandlers.find (it->first);
|
auto it1 = m_RouterInfoHandlers.find (it->first);
|
||||||
if (it1 != m_RouterInfoHandlers.end ())
|
if (it1 != m_RouterInfoHandlers.end ())
|
||||||
|
{
|
||||||
|
if (it != params.begin ()) results << ",";
|
||||||
(this->*(it1->second))(results);
|
(this->*(it1->second))(results);
|
||||||
|
}
|
||||||
else
|
else
|
||||||
LogPrint (eLogError, "I2PControl RouterInfo unknown request ", it->first);
|
LogPrint (eLogError, "I2PControl RouterInfo unknown request ", it->first);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue