Merge pull request #5301 from vgaetera/fix-iface-ip6table

This commit is contained in:
Jo-Philipp Wich 2021-08-31 12:45:39 +02:00 committed by GitHub
commit 71d79ec0c1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -950,7 +950,7 @@ return view.extend({
o = nettools.replaceOption(s, 'advanced', form.Value, 'ip6table', _('Override IPv6 routing table')); o = nettools.replaceOption(s, 'advanced', form.Value, 'ip6table', _('Override IPv6 routing table'));
o.datatype = 'or(uinteger, string)'; o.datatype = 'or(uinteger, string)';
for (var i = 0; i < rtTables.length; i++) for (var i = 0; i < rtTables.length; i++)
o.value(rtTables[i][1], '%s (%d)'.format(rtTables[i][0], rtTables[i][1])); o.value(rtTables[i][1], '%s (%d)'.format(rtTables[i][1], rtTables[i][0]));
o = nettools.replaceOption(s, 'advanced', form.Flag, 'delegate', _('Delegate IPv6 prefixes'), _('Enable downstream delegation of IPv6 prefixes available on this interface')); o = nettools.replaceOption(s, 'advanced', form.Flag, 'delegate', _('Delegate IPv6 prefixes'), _('Enable downstream delegation of IPv6 prefixes available on this interface'));
o.default = o.enabled; o.default = o.enabled;