luci-app-firewall: add limited masquerading tooltip

Signed-off-by: Florian Eckert <fe@dev.tdt.de>
This commit is contained in:
Florian Eckert 2020-12-18 15:53:08 +01:00
parent df2a135a08
commit 4bbf6db9d9

View file

@ -158,6 +158,14 @@ return view.extend({
o = s.taboption('general', form.Flag, 'masq', _('Masquerading'));
o.editable = true;
o.tooltip = function(section_id) {
var masq_src = uci.get('firewall', section_id, 'masq_src')
var masq_dest = uci.get('firewall', section_id, 'masq_dest')
if (masq_src || masq_dest)
return _('Limited masquerading enabled');
return null;
};
o = s.taboption('general', form.Flag, 'mtu_fix', _('MSS clamping'));
o.modalonly = true;