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 18f66c2..ff5e26d 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;