diff --git a/apps/i2ptunnel/jsp/editClient.jsi b/apps/i2ptunnel/jsp/editClient.jsi index e55d71af9..70874a1a6 100644 --- a/apps/i2ptunnel/jsp/editClient.jsi +++ b/apps/i2ptunnel/jsp/editClient.jsi @@ -90,7 +90,7 @@ } String phelp = intl._t("Specify the local port this service should be accessible from"); String ptext = canChangePort ? phelp : bStopFirst; - String pdisabled = canChangePort ? "" : " disabled=\"disabled\" "; + String pdisabled = canChangePort ? "" : " readonly=\"readonly\" "; %> /> @@ -125,6 +125,8 @@ out.write('\"'); if (ifc.equals(clientInterface)) out.write(" selected=\"selected\""); + else if (!canChangePort) + out.write(" disabled=\"disabled\""); out.write('>'); out.write(ifc); out.write("\n"); diff --git a/apps/i2ptunnel/jsp/editServer.jsi b/apps/i2ptunnel/jsp/editServer.jsi index 926736e6c..c731cb40f 100644 --- a/apps/i2ptunnel/jsp/editServer.jsi +++ b/apps/i2ptunnel/jsp/editServer.jsi @@ -98,7 +98,7 @@ String asphelp = intl._t("Specify the local port this service should be accessible from"); String bsphelp = intl._t("Specify the port the server is running on"); String ptext = canChangePort ? (isStreamrServer ? asphelp : bsphelp) : stopFirst; - String pdisabled = canChangePort ? "" : " disabled=\"disabled\" "; + String pdisabled = canChangePort ? "" : " readonly=\"readonly\" "; %> /> <% if (!isStreamrServer) { %> @@ -135,7 +135,7 @@ String esphelp = intl._t("Listening interface (IP address) for client access (normally 127.0.0.1)"); String fsphelp = canChangePort ? esphelp : stopFirst; %> - <% String clientInterface = editBean.getClientInterface(curTunnel); for (String ifc : editBean.interfaceSet()) { @@ -144,6 +144,8 @@ out.write('\"'); if (ifc.equals(clientInterface)) out.write(" selected=\"selected\""); + else if (!canChangePort) + out.write(" disabled=\"disabled\""); out.write('>'); out.write(ifc); out.write("\n"); @@ -190,7 +192,7 @@ } String htext = intl._t("Path to Private Key File"); String dtext = canChangeDest ? htext : stopFirst; - String ddisabled = canChangeDest ? "" : " disabled=\"disabled\" "; + String ddisabled = canChangeDest ? "" : " readonly=\"readonly\" "; %> /> @@ -473,6 +475,7 @@ int curSigType = editBean.getSigType(curTunnel, tunnelType); boolean allowBlinding = (curSigType == 7 || curSigType == 11); String bdisabled = (allowBlinding && canChangeEncType) ? "" : " disabled=\"disabled\" "; + String bidisabled = (allowBlinding && canChangeEncType) ? "" : " readonly=\"readonly\" "; if (allowBlinding) { %>