diff --git a/apps/i2psnark/java/src/org/klomp/snark/SnarkManager.java b/apps/i2psnark/java/src/org/klomp/snark/SnarkManager.java index 8c6437a96fe9d124a3f44feff0eaa2a4336092e0..befa2acb4e6110681f9f5180582808f266fb0649 100644 --- a/apps/i2psnark/java/src/org/klomp/snark/SnarkManager.java +++ b/apps/i2psnark/java/src/org/klomp/snark/SnarkManager.java @@ -2678,6 +2678,14 @@ public class SnarkManager implements CompleteListener, ClientApp { return rv; } + /** + * Has the default tracker list been modified? + * @since 0.9.35 + */ + public boolean hasModifiedTrackers() { + return _config.containsKey(PROP_TRACKERS); + } + /** @since 0.9 */ private void initTrackerMap() { String trackers = _config.getProperty(PROP_TRACKERS); diff --git a/apps/i2psnark/java/src/org/klomp/snark/web/I2PSnarkServlet.java b/apps/i2psnark/java/src/org/klomp/snark/web/I2PSnarkServlet.java index 6a3d8d15f7039d32f7940e1880c5fb658d753112..9b5112f6a30dc215a6cccf2d8834d15d1622dfe8 100644 --- a/apps/i2psnark/java/src/org/klomp/snark/web/I2PSnarkServlet.java +++ b/apps/i2psnark/java/src/org/klomp/snark/web/I2PSnarkServlet.java @@ -350,10 +350,7 @@ public class I2PSnarkServlet extends BasicServlet { out.write(_contextName); out.write("</a>\n"); sortedTrackers = _manager.getSortedTrackers(); - if (_context.isRouterContext()) { - //out.write("<a href=\"http://forum.i2p/viewforum.php?f=21\" class=\"snarkNav nav_forum\" target=\"_blank\">"); - //out.write(_t("Forum")); - //out.write("</a>\n"); + if (_context.isRouterContext() && _manager.hasModifiedTrackers()) { for (Tracker t : sortedTrackers) { if (t.baseURL == null || !t.baseURL.startsWith("http")) continue;