gluon-core: always store primary MAC address in lowercase hex digits (#2579)

Depending on the source of the primary MAC address, uppercase digits
would be used on some devices. Convert the address to lowercase for
consistency.

We only change the case for newly configured nodes to avoid changing the
node ID and derives MAC addresses for existing installations.
This commit is contained in:
Matthias Schiffer 2022-07-08 20:55:24 +02:00 committed by GitHub
parent 001316724b
commit e53e4440ae
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -147,7 +147,7 @@ for _, matcher in ipairs(primary_addrs) do
if platform.match(unpack(match)) then
local addr = f()
if addr then
sysconfig.primary_mac = addr
sysconfig.primary_mac = addr:lower()
return
end
end