From 8b4015036d6f298cbfe0291ab8fdc23b4133cca7 Mon Sep 17 00:00:00 2001 From: Vladislav Grigoryev Date: Thu, 26 Aug 2021 13:33:44 +0300 Subject: [PATCH] luci-mod-network: fix route6 source autocomplete Fix the wrong value for the "source" option of the "route6" section. Signed-off-by: Vladislav Grigoryev --- .../htdocs/luci-static/resources/view/network/routes.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/luci-mod-network/htdocs/luci-static/resources/view/network/routes.js b/modules/luci-mod-network/htdocs/luci-static/resources/view/network/routes.js index 7e11a3cb41..164619940c 100644 --- a/modules/luci-mod-network/htdocs/luci-static/resources/view/network/routes.js +++ b/modules/luci-mod-network/htdocs/luci-static/resources/view/network/routes.js @@ -89,7 +89,7 @@ return view.extend({ o = s.taboption('advanced', form.Value, 'source', _('Source Address')); o.placeholder = E('em', _('automatic')); for (var j = 0; j < netdevs.length; j++) { - var addrs = netdevs[j].getIPAddrs(); + var addrs = (i == 4) ? netdevs[j].getIPAddrs() : netdevs[j].getIP6Addrs(); for (var k = 0; k < addrs.length; k++) o.value(addrs[k].split('/')[0]); } -- 2.30.2