Fix missing 'do' syntax error (#1720)

This commit is contained in:
Tim Wilkinson 2024-11-26 21:20:30 -08:00 committed by GitHub
parent f0270c4f37
commit 3faeefe559
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 0 deletions

View File

@ -1064,6 +1064,7 @@ if h and e then
local reservations = cm:get_all("setup", "dhcpreservations", "reservation") or {} local reservations = cm:get_all("setup", "dhcpreservations", "reservation") or {}
for _, reservation in ipairs(reservations) for _, reservation in ipairs(reservations)
do
local mac, ip, host, noprop = reservation:match("(%S+)%s+(%S+)%s+(%S+)%s*(%S*)") local mac, ip, host, noprop = reservation:match("(%S+)%s+(%S+)%s+(%S+)%s*(%S*)")
if mac and ip and host and noprop then if mac and ip and host and noprop then
ip = decimal_to_ip(netaddr + ip) ip = decimal_to_ip(netaddr + ip)