Browse Source

don't show udp tunnels in ui yet

pull/628/head
Jeff Becker 8 years ago
parent
commit
f64f875806
No known key found for this signature in database
GPG Key ID: AB950234D6EA286B
  1. 29
      HTTPServer.cpp

29
HTTPServer.cpp

@ -338,34 +338,7 @@ namespace http {
s << "<td>" << (int)it->GetStatus () << "</td>"; s << "<td>" << (int)it->GetStatus () << "</td>";
s << "</tr><br>\r\n" << std::endl; s << "</tr><br>\r\n" << std::endl;
} }
s << "</table><br>\r\n<table><caption>Forwards</caption><tr>"; s << "</table>";
s << "<th>Remote Destination</th>";
s << "<th>IBGW</th>";
s << "<th>OBEP</th>";
s << "<th>UDP Converstation</th>";
s << "</th>";
auto forward = i2p::client::context.GetForwardInfosFor(dest->GetIdentHash());
for (auto info : forward)
{
s << "<tr>";
s << "<td>" << info->RemoteIdent->ToBase32() << "</td>";
s << "<td>";
if(info->CurrentIBGW)
s << info->CurrentIBGW->ToBase64().c_str();
else
s << "(none)";
s << "</td>";
s << "<td>";
if(info->CurrentOBEP)
s << info->CurrentOBEP->ToBase64().c_str();
else
s << "(none)";
s << "</td>";
s << "<td>" << info->LocalEndpoint << " &#8644; " << info->RemoteEndpoint << "</td>";
s << "</tr><br>\r\n";
}
s << "</table>\r\n";
} }
} }

Loading…
Cancel
Save