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;
%>
-