Console: Hide SSU1 row on /peers status tab if disabled

This commit is contained in:
zzz
2022-12-01 08:25:37 -05:00
parent d0cd620364
commit 1b6ece965c

View File

@ -225,6 +225,8 @@ public class PeerHelper extends HelperBase {
for (int idx = 0; idx < 8; idx += 4) {
if (style.equals("NTCP") && idx == 0)
continue;
if (style.equals("SSU") && idx == 0 && !_context.getBooleanProperty(TransportManager.PROP_ENABLE_SSU1))
continue;
buf.append("<tr><td align=\"center\"><b>")
.append(style)
.append(1 + (idx / 4))