diff --git a/apps/routerconsole/jsp/debug.jsp b/apps/routerconsole/jsp/debug.jsp index b621ae6972ffd554ed22ff299eeac0a9df009524..66e2ebf58c4e93ac6c6f5399e421a8b6aea6d63d 100644 --- a/apps/routerconsole/jsp/debug.jsp +++ b/apps/routerconsole/jsp/debug.jsp @@ -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>"); } }