mirror of https://github.com/aredn/aredn.git
Fix missing 'do' syntax error (#1720)
This commit is contained in:
parent
f0270c4f37
commit
3faeefe559
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue