From 23f1b97763ed8c006b8799309d3c6a05a1d2fca6 Mon Sep 17 00:00:00 2001 From: Paul Donald Date: Sat, 6 Jul 2024 02:03:49 +0200 Subject: luci-mod-status: Set status page "Set Static" for MAC to list type MACs are list type in DHCP; 1 IP can have multiple MACs Treat IPv6 identically Signed-off-by: Paul Donald --- .../htdocs/luci-static/resources/view/status/include/40_dhcp.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/luci-mod-status/htdocs/luci-static/resources/view') diff --git a/modules/luci-mod-status/htdocs/luci-static/resources/view/status/include/40_dhcp.js b/modules/luci-mod-status/htdocs/luci-static/resources/view/status/include/40_dhcp.js index 19edbd3756..1cb923755d 100644 --- a/modules/luci-mod-status/htdocs/luci-static/resources/view/status/include/40_dhcp.js +++ b/modules/luci-mod-status/htdocs/luci-static/resources/view/status/include/40_dhcp.js @@ -50,7 +50,7 @@ return baseclass.extend({ uci.set('dhcp', cfg, 'name', lease.hostname); uci.set('dhcp', cfg, 'duid', lease.duid.toUpperCase()); - uci.set('dhcp', cfg, 'mac', lease.macaddr); + uci.set('dhcp', cfg, 'mac', [lease.macaddr]); if (ip6arr) uci.set('dhcp', cfg, 'hostid', (ip6arr[6] * 0xFFFF + ip6arr[7]).toString(16)); -- cgit v1.2.3