Browse Source

fix const std::map usage

Signed-off-by: R4SAS <r4sas@i2pmail.org>
pull/1763/head
R4SAS 2 years ago
parent
commit
9ddbf255ba
Signed by: r4sas
GPG Key ID: 66F6C87B98EBCFE2
  1. 7
      libi2pd_client/HTTPProxy.cpp

7
libi2pd_client/HTTPProxy.cpp

@ -180,8 +180,11 @@ namespace proxy { @@ -180,8 +180,11 @@ namespace proxy {
<< "<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"
<< "<ul>\r\n";
for (const auto& jump : jumporder) {
ss << " <li><a href=\"" << jumpservices[jump] << host << "\">" << jump << "</a></li>\r\n";
for (const auto& jump : jumporder)
{
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";
std::string content = ss.str();

Loading…
Cancel
Save