luci-app-firewall: map proto '*' and 'any' to all on rule config
Before the change, the options '*' and 'any' in the drop down were not recognized as valid options, when loaded from the uci. With this change, the options '*' and 'any' are mapped to 'all' and saved as such. This change is especially important if the proto option is changed manually to '*' or 'any' in shell and then further configured via LuCI. Signed-off-by: Florian Eckert <fe@dev.tdt.de>
This commit is contained in:
parent
c121a43804
commit
972096bf39
1 changed files with 3 additions and 0 deletions
|
@ -522,6 +522,9 @@ return baseclass.extend({
|
||||||
}
|
}
|
||||||
}, this));
|
}, this));
|
||||||
|
|
||||||
|
if (cfgvalue == '*' || cfgvalue == 'any' || cfgvalue == 'all')
|
||||||
|
cfgvalue = 'all';
|
||||||
|
|
||||||
return cfgvalue;
|
return cfgvalue;
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue