From ecc8b2a1c6de9986f92153bda92da657ec90bb95 Mon Sep 17 00:00:00 2001
From: zzz <zzz@i2pmail.org>
Date: Fri, 21 May 2021 09:47:43 -0400
Subject: [PATCH] Console: Don't show default cost for NTCP2 either

---
 .../java/src/net/i2p/router/web/helpers/NetDbRenderer.java      | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/apps/routerconsole/java/src/net/i2p/router/web/helpers/NetDbRenderer.java b/apps/routerconsole/java/src/net/i2p/router/web/helpers/NetDbRenderer.java
index effd0d17b2..e708d4b0ea 100644
--- a/apps/routerconsole/java/src/net/i2p/router/web/helpers/NetDbRenderer.java
+++ b/apps/routerconsole/java/src/net/i2p/router/web/helpers/NetDbRenderer.java
@@ -1012,7 +1012,7 @@ class NetDbRenderer {
                 buf.append("<br><b class=\"netdb_transport\">").append(DataHelper.stripHTML(style)).append(":</b>");
                 if (debug) {
                     int cost = addr.getCost();
-                    if (!((style.equals("SSU") && cost == 5) || (style.equals("NTCP") && cost == 10)))
+                    if (!((style.equals("SSU") && cost == 5) || (style.startsWith("NTCP") && cost == 10)))
                         buf.append("&nbsp;<span class=\"netdb_name\">").append(_t("cost")).append("</span>: <span class=\"netdb_info\">").append("" + cost).append("</span>&nbsp;");
                 }
                 Map<Object, Object> p = addr.getOptionsMap();
-- 
GitLab