I2P Address: [http://git.idk.i2p]

Skip to content
Snippets Groups Projects
Unverified Commit de7b8db5 authored by zzz's avatar zzz
Browse files

Console: Don't list same client SKM twice on /debug for subsessions

parent 1e28557c
No related branches found
No related tags found
No related merge requests found
......@@ -83,6 +83,7 @@ if (dd == null || dd.equals("0")) {
out.print("<h2>Client Session Key Managers</h2>");
java.util.Set<net.i2p.data.Destination> clients = ctx.clientManager().listClients();
java.util.Set<net.i2p.crypto.SessionKeyManager> skms = new java.util.HashSet<net.i2p.crypto.SessionKeyManager>(clients.size());
int i = 0;
for (net.i2p.data.Destination dest : clients) {
net.i2p.data.Hash h = dest.calculateHash();
......@@ -100,7 +101,10 @@ if (dd == null || dd.equals("0")) {
out.print("<font size=\"-2\">" + dest.toBase32() + "</font>");
}
out.print(" Session Key Manager</h2>");
skm.renderStatusHTML(out);
if (skms.add(skm))
skm.renderStatusHTML(out);
else
out.print("<p>See Session Key Manager for alternate destination above</p>");
out.print("</div>");
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment