forked from I2P_Developers/i2p.i2p
Console: Don't list same client SKM twice on /debug for subsessions
This commit is contained in:
@ -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>");
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user