luci-app-firewall: snats.js: fix rewrite IP validation for SNAT target
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
This commit is contained in:
parent
0677a9643e
commit
d527c28ffa
1 changed files with 1 additions and 1 deletions
|
@ -220,7 +220,7 @@ return L.view.extend({
|
||||||
a = this.formvalue(section_id),
|
a = this.formvalue(section_id),
|
||||||
p = port ? port[0].formvalue(section_id) : null;
|
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 _('A rewrite IP must be specified!');
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
|
Loading…
Reference in a new issue