diff --git a/apps/routerconsole/jsp/configi2cp.jsp b/apps/routerconsole/jsp/configi2cp.jsp index 380aaaa676..29eba95fb4 100644 --- a/apps/routerconsole/jsp/configi2cp.jsp +++ b/apps/routerconsole/jsp/configi2cp.jsp @@ -43,9 +43,17 @@ input.default { width: 1px; height: 1px; visibility: hidden; } <%=intl._t("Enabled without SSL")%> > <%=intl._t("Enabled with SSL required")%> - > +<% + // returns nonempty string if disabled + String disableChecked = clientshelper.i2cpModeChecked(0); + boolean isDisabled = disableChecked.length() > 0; +%> + > <%=intl._t("Disabled - Clients outside this Java process may not connect")%> +<% + if (!isDisabled) { +%> <%=intl._t("I2CP Interface")%>: @@ -77,6 +85,9 @@ input.default { width: 1px; height: 1px; visibility: hidden; } <%=intl._t("Password")%>: +<% + } // !isDisabled +%> " /> " />