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:
parent
001316724b
commit
e53e4440ae
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user