luci-app-firewall: add limited masquerading tooltip
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
This commit is contained in:
parent
df2a135a08
commit
4bbf6db9d9
1 changed files with 8 additions and 0 deletions
|
@ -158,6 +158,14 @@ return view.extend({
|
||||||
|
|
||||||
o = s.taboption('general', form.Flag, 'masq', _('Masquerading'));
|
o = s.taboption('general', form.Flag, 'masq', _('Masquerading'));
|
||||||
o.editable = true;
|
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 = s.taboption('general', form.Flag, 'mtu_fix', _('MSS clamping'));
|
||||||
o.modalonly = true;
|
o.modalonly = true;
|
||||||
|
|
Loading…
Reference in a new issue