luci-mod-admin-full: fix incorrect length of DUID-LL
[project/luci.git] / modules / luci-mod-admin-full / luasrc / view / admin_status / index.htm
index 18f66c2a82d326f3a88a21f5c3bc6d74dbf4f447..ff5e26de94114c5c8fa068eeb8b5dbe3e7652c55 100644 (file)
                        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;