luci-app-firewall: snats.js: fix rewrite IP validation for SNAT target
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit d527c28ffa
)
This commit is contained in:
parent
657407f927
commit
087e6acbf4
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue