diff options
author | Jo-Philipp Wich <jo@mein.io> | 2019-11-08 10:25:30 +0100 |
---|---|---|
committer | Jo-Philipp Wich <jo@mein.io> | 2019-11-08 10:25:30 +0100 |
commit | 392ba53effa26d2592db14c607c7d3103cce34d3 (patch) | |
tree | e9aae0061e142b6c0e9f8d418b27d8f54002fc97 /modules/luci-mod-network/htdocs | |
parent | b3681bd9dc13699759329c76ba77a0bef3ebb340 (diff) |
luci-base, luci-mod-network: migrate getDUIDHints method to C plugin
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'modules/luci-mod-network/htdocs')
-rw-r--r-- | modules/luci-mod-network/htdocs/luci-static/resources/view/network/dhcp.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/luci-mod-network/htdocs/luci-static/resources/view/network/dhcp.js b/modules/luci-mod-network/htdocs/luci-static/resources/view/network/dhcp.js index d7620e7f47..84586f4854 100644 --- a/modules/luci-mod-network/htdocs/luci-static/resources/view/network/dhcp.js +++ b/modules/luci-mod-network/htdocs/luci-static/resources/view/network/dhcp.js @@ -12,7 +12,7 @@ callHostHints = rpc.declare({ }); callDUIDHints = rpc.declare({ - object: 'luci', + object: 'luci-rpc', method: 'getDUIDHints', expect: { '': {} } }); @@ -394,7 +394,7 @@ return L.view.extend({ so = ss.option(form.Value, 'duid', _('<abbr title="The DHCP Unique Identifier">DUID</abbr>')); so.datatype = 'and(rangelength(20,36),hexstring)'; Object.keys(duids).forEach(function(duid) { - so.value(duid, '%s (%s)'.format(duid, duids[duid].name || '?')); + so.value(duid, '%s (%s)'.format(duid, duids[duid].hostname || duids[duid].macaddr || duids[duid].ip6addr || '?')); }); so = ss.option(form.Value, 'hostid', _('<abbr title="Internet Protocol Version 6">IPv6</abbr>-Suffix (hex)')); |