projects
/
project
/
luci.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
luci-mod-admin-full: fix incorrect length of DUID-LL
[project/luci.git]
/
modules
/
luci-mod-admin-full
/
luasrc
/
view
/
admin_network
/
lease_status.htm
diff --git
a/modules/luci-mod-admin-full/luasrc/view/admin_network/lease_status.htm
b/modules/luci-mod-admin-full/luasrc/view/admin_network/lease_status.htm
index
ea6ee91
..
28a37dc
100644
(file)
--- a/
modules/luci-mod-admin-full/luasrc/view/admin_network/lease_status.htm
+++ b/
modules/luci-mod-admin-full/luasrc/view/admin_network/lease_status.htm
@@
-5,7
+5,7
@@
return duid.substr(16).replace(/(..)(?=..)/g, '$1:').toUpperCase();
// DUID-LL / Ethernet
return duid.substr(16).replace(/(..)(?=..)/g, '$1:').toUpperCase();
// DUID-LL / Ethernet
- if (duid.length === 2
4
&& duid.substr(0, 8) === '00030001')
+ if (duid.length === 2
0
&& duid.substr(0, 8) === '00030001')
return duid.substr(8).replace(/(..)(?=..)/g, '$1:').toUpperCase();
return null;
return duid.substr(8).replace(/(..)(?=..)/g, '$1:').toUpperCase();
return null;