Fix WAN port forwarding. (#1474)

This commit is contained in:
Tim Wilkinson 2024-09-07 16:27:57 -07:00 committed by GitHub
parent 1df7fa3e05
commit 4d3818f8df
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -331,7 +331,7 @@ if (f) {
<option value="both" {{p.src == "both" ? "selected" : ""}}>Mesh &amp; WAN</option>
</select>
{% } else { %}
<input name="port_src" type="text" disabled value="WAN">
<input name="port_src" type="text" disabled value="wan">
{% } %}
<input name="port_sports" type="text" required placeholder="Port or range" pattern="([1-9]|[1-9][0-9]{1,3}|[1-5][0-9]{4}|6[0-4][0-9]{3}|65[0-4][0-9]{2}|655[0-2][0-9]|6553[0-5])(?:-([1-9]|[1-9][0-9]{1,3}|[1-5][0-9]{4}|6[0-4][0-9]{3}|65[0-4][0-9]{2}|655[0-2][0-9]|6553[0-5]))?" value="{{p.sports}}">
<select name="port_type">
@ -603,7 +603,7 @@ if (f) {
<option value="both">Mesh &amp; WAN</option>
</select>
{% } else { %}
<input name="port_src" type="text" disabled value="WAN">
<input name="port_src" type="text" disabled value="wan">
{% } %}
<input name="port_sports" type="text" required placeholder="Port or range" pattern="([1-9]|[1-9][0-9]{1,3}|[1-5][0-9]{4}|6[0-4][0-9]{3}|65[0-4][0-9]{2}|655[0-2][0-9]|6553[0-5])(?:-([1-9]|[1-9][0-9]{1,3}|[1-5][0-9]{4}|6[0-4][0-9]{3}|65[0-4][0-9]{2}|655[0-2][0-9]|6553[0-5]))?" value="">
<select name="port_type">