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
index ea6ee91..28a37dc 100644 (file)
@@ -5,7 +5,7 @@
                        return duid.substr(16).replace(/(..)(?=..)/g, '$1:').toUpperCase();
 
                // DUID-LL / Ethernet
-               if (duid.length === 24 && duid.substr(0, 8) === '00030001')
+               if (duid.length === 20 && duid.substr(0, 8) === '00030001')
                        return duid.substr(8).replace(/(..)(?=..)/g, '$1:').toUpperCase();
 
                return null;