mirror of
https://github.com/PurpleI2P/i2pd
synced 2024-11-10 08:00:38 +03:00
fix const std::map usage
Signed-off-by: R4SAS <r4sas@i2pmail.org>
This commit is contained in:
parent
dfb171d32a
commit
9ddbf255ba
@ -180,8 +180,11 @@ namespace proxy {
|
|||||||
<< "<p>" << tr("Remote host not found in router's addressbook") << "</p>\r\n"
|
<< "<p>" << tr("Remote host not found in router's addressbook") << "</p>\r\n"
|
||||||
<< "<p>" << tr("You may try to find this host on jump services below") << ":</p>\r\n"
|
<< "<p>" << tr("You may try to find this host on jump services below") << ":</p>\r\n"
|
||||||
<< "<ul>\r\n";
|
<< "<ul>\r\n";
|
||||||
for (const auto& jump : jumporder) {
|
for (const auto& jump : jumporder)
|
||||||
ss << " <li><a href=\"" << jumpservices[jump] << host << "\">" << jump << "</a></li>\r\n";
|
{
|
||||||
|
auto js = jumpservices.find (jump);
|
||||||
|
if (js != jumpservices.end())
|
||||||
|
ss << " <li><a href=\"" << js->first << host << "\">" << js->second << "</a></li>\r\n";
|
||||||
}
|
}
|
||||||
ss << "</ul>\r\n";
|
ss << "</ul>\r\n";
|
||||||
std::string content = ss.str();
|
std::string content = ss.str();
|
||||||
|
Loading…
Reference in New Issue
Block a user