From 3ebdf51f9b2e713cd655c0f97f2542c96736cae5 Mon Sep 17 00:00:00 2001 From: Vladislav Grigoryev Date: Thu, 26 Aug 2021 04:42:36 +0300 Subject: [PATCH] luci-mod-network: fix option ip6table in network/interfaces Fix the incorrectly displayed value for the option "ip6table". Signed-off-by: Vladislav Grigoryev --- .../htdocs/luci-static/resources/view/network/interfaces.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/luci-mod-network/htdocs/luci-static/resources/view/network/interfaces.js b/modules/luci-mod-network/htdocs/luci-static/resources/view/network/interfaces.js index f7b8ddcafe..ffa0ef8ec3 100644 --- a/modules/luci-mod-network/htdocs/luci-static/resources/view/network/interfaces.js +++ b/modules/luci-mod-network/htdocs/luci-static/resources/view/network/interfaces.js @@ -950,7 +950,7 @@ return view.extend({ o = nettools.replaceOption(s, 'advanced', form.Value, 'ip6table', _('Override IPv6 routing table')); o.datatype = 'or(uinteger, string)'; 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.default = o.enabled; -- 2.30.2