diff options
author | Jo-Philipp Wich <jo@mein.io> | 2020-02-22 22:19:54 +0100 |
---|---|---|
committer | Jo-Philipp Wich <jo@mein.io> | 2020-02-22 22:20:17 +0100 |
commit | d527c28ffa973e04f1ed3eac9f4a7504404b4fcd (patch) | |
tree | 4ac764d9972199be2d4489af98413f6bfa1633aa /applications/luci-app-firewall/htdocs/luci-static/resources | |
parent | 0677a9643e3492fcc032141c0d3f830511a717e5 (diff) |
luci-app-firewall: snats.js: fix rewrite IP validation for SNAT target
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'applications/luci-app-firewall/htdocs/luci-static/resources')
-rw-r--r-- | applications/luci-app-firewall/htdocs/luci-static/resources/view/firewall/snats.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/applications/luci-app-firewall/htdocs/luci-static/resources/view/firewall/snats.js b/applications/luci-app-firewall/htdocs/luci-static/resources/view/firewall/snats.js index 9efa1a749..8a1d41e71 100644 --- a/applications/luci-app-firewall/htdocs/luci-static/resources/view/firewall/snats.js +++ b/applications/luci-app-firewall/htdocs/luci-static/resources/view/firewall/snats.js @@ -220,7 +220,7 @@ return L.view.extend({ a = this.formvalue(section_id), p = port ? port[0].formvalue(section_id) : null; - if ((a == null || a == '') && (p == null || p == '')) + if ((a == null || a == '') && (p == null || p == '') && value == '') return _('A rewrite IP must be specified!'); return true; |