summaryrefslogtreecommitdiffhomepage
path: root/applications
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2020-02-22 22:19:54 +0100
committerJo-Philipp Wich <jo@mein.io>2020-02-22 22:20:17 +0100
commitd527c28ffa973e04f1ed3eac9f4a7504404b4fcd (patch)
tree4ac764d9972199be2d4489af98413f6bfa1633aa /applications
parent0677a9643e3492fcc032141c0d3f830511a717e5 (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')
-rw-r--r--applications/luci-app-firewall/htdocs/luci-static/resources/view/firewall/snats.js2
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 9efa1a7497..8a1d41e719 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;