From 28575dbdaeda470805a0578cfaea30021d40b9d1 Mon Sep 17 00:00:00 2001 From: zzz Date: Tue, 28 Jan 2014 14:21:54 +0000 Subject: [PATCH] * Key certs: - Hide setting in i2ptunnel edit pages unless advanced user - Only store LS with key certs to routers that support it --- .../src/net/i2p/i2ptunnel/web/EditBean.java | 5 +++++ apps/i2ptunnel/jsp/editClient.jsp | 2 ++ apps/i2ptunnel/jsp/editServer.jsp | 2 ++ .../router/networkdb/kademlia/StoreJob.java | 21 +++++++++++++++++++ 4 files changed, 30 insertions(+) diff --git a/apps/i2ptunnel/java/src/net/i2p/i2ptunnel/web/EditBean.java b/apps/i2ptunnel/java/src/net/i2p/i2ptunnel/web/EditBean.java index 0e1a61d2b..85365e28d 100644 --- a/apps/i2ptunnel/java/src/net/i2p/i2ptunnel/web/EditBean.java +++ b/apps/i2ptunnel/java/src/net/i2p/i2ptunnel/web/EditBean.java @@ -351,6 +351,11 @@ public class EditBean extends IndexBean { return Addresses.getAllAddresses(); } + /** @since 0.9.11 */ + public boolean isAdvanced() { + return _context.getBooleanProperty("routerconsole.advanced"); + } + public String getI2CPHost(int tunnel) { if (_context.isRouterContext()) return _("internal"); diff --git a/apps/i2ptunnel/jsp/editClient.jsp b/apps/i2ptunnel/jsp/editClient.jsp index f9437bd5b..f158f61ee 100644 --- a/apps/i2ptunnel/jsp/editClient.jsp +++ b/apps/i2ptunnel/jsp/editClient.jsp @@ -434,6 +434,7 @@ input.default { width: 1px; height: 1px; visibility: hidden; } <% } %> + <% if (editBean.isAdvanced()) { %>