use shared pointers

This commit is contained in:
Jeff Becker 2016-09-03 16:54:39 -04:00
parent f0bc2a3645
commit 1015188c4e
No known key found for this signature in database
GPG key ID: AB950234D6EA286B
3 changed files with 9 additions and 14 deletions

View file

@ -346,20 +346,20 @@ namespace http {
s << "<th>Idle Time</th>";
s << "</th>";
auto forward = i2p::client::context.GetForwardInfosFor(dest->GetIdentHash());
for (auto & info : forward)
for (auto info : forward)
{
s << "<tr>";
s << "<td>" << info.RemoteIdent.ToBase32() << "</td>";
s << "<td>";
if(info.CurrentIBGW)
s << info.CurrentIBGW->ToBase64().c_str();
s << std::string(info.CurrentIBGW->ToBase64());
else
s << "(none)";
s << "</td>";
s << "<td>";
if(info.CurrentOBEP)
s << info.CurrentOBEP->ToBase64().c_str();
s << std::string(info.CurrentOBEP->ToBase64());
else
s << "(none)";
s << "</td>";