diff options
author | Paul Donald <newtwen+github@gmail.com> | 2024-07-06 02:03:49 +0200 |
---|---|---|
committer | Paul Donald <newtwen+github@gmail.com> | 2024-07-06 02:03:49 +0200 |
commit | 23f1b97763ed8c006b8799309d3c6a05a1d2fca6 (patch) | |
tree | 2b0bbd9aa174d0de12e58b6e5f49bd3306df4da9 /modules/luci-mod-status/htdocs/luci-static/resources/view | |
parent | cef99564086caf0aa07dcd8753e0b505504687c1 (diff) |
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 <newtwen+github@gmail.com>
Diffstat (limited to 'modules/luci-mod-status/htdocs/luci-static/resources/view')
-rw-r--r-- | modules/luci-mod-status/htdocs/luci-static/resources/view/status/include/40_dhcp.js | 2 |
1 files changed, 1 insertions, 1 deletions
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)); |