DHCP static leases stopped working properly

I think found the problem!

In /etc/config/dhcp, I have working static leases defined as follows:

config host
        option name 'myhostname'
        option ip '192.168.1.X'
        option mac 'XX:XX:XX:XX:XX:XX'
        option dns '1'

After editing such an entry in Luci with openwrt version 23.05.x, they are changed into:

config host
        option name 'myhostname'
        option ip '192.168.1.X'
        list mac 'XX:XX:XX:XX:XX:XX'
        option dns '1'

Notice how the option mac line changed into list mac! These entries appear to be ignored by odchpd because it hands out dynamic leases instead. I guess this is a new feature to support multiple MAC addresses, but the syntax isn't yet supported by odhcp?

@dedeckeh Can you have a look at this?

1 Like