Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/openwrt/luci.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2020-02-23 00:19:54 +0300
committerJo-Philipp Wich <jo@mein.io>2020-02-23 00:20:17 +0300
commitd527c28ffa973e04f1ed3eac9f4a7504404b4fcd (patch)
tree4ac764d9972199be2d4489af98413f6bfa1633aa /applications/luci-app-firewall/htdocs
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/luci-app-firewall/htdocs')
-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;