diff --git a/apps/i2ptunnel/jsp/wizard.jsp b/apps/i2ptunnel/jsp/wizard.jsp index 1fdb9f93cf771016997e17efa59b76710d02cc6b..8879ee8bf5db890fa38786932008e6cc23d271c1 100644 --- a/apps/i2ptunnel/jsp/wizard.jsp +++ b/apps/i2ptunnel/jsp/wizard.jsp @@ -226,11 +226,15 @@ </label> <select id="reachableBy" name="reachableBy" title="IP for Client Access" class="selectbox"> <% + String clientInterface = request.getParameter("reachableBy"); + if ("null".equals(clientInterface)) { + clientInterface = "127.0.0.1"; + } for (String ifc : wizardBean.interfaceSet()) { out.write("<option value=\""); out.write(ifc); out.write('\"'); - if (ifc.equals("127.0.0.1")) + if (ifc.equals(clientInterface)) out.write(" selected=\"selected\""); out.write('>'); out.write(ifc);