mirror of https://github.com/aredn/aredn.git
Fix noprop flag detection (#284)
This commit is contained in:
parent
8409ffe6ea
commit
d9c2bb1bee
|
@ -107,8 +107,8 @@ if dmz_mode ~= "0" then
|
||||||
if nixio.fs.stat("/etc/ethers") then
|
if nixio.fs.stat("/etc/ethers") then
|
||||||
for line in io.lines("/etc/ethers")
|
for line in io.lines("/etc/ethers")
|
||||||
do
|
do
|
||||||
local noprop = line:match(".* .*( .*)")
|
local noprop = line:match(".*%s+.*%s+#NOPROP")
|
||||||
if noprop ~= " #NOPROP" then
|
if not noprop then
|
||||||
local ip = line:match("[0-9a-fA-F:]+%s+([%d%.]+)")
|
local ip = line:match("[0-9a-fA-F:]+%s+([%d%.]+)")
|
||||||
if ip then
|
if ip then
|
||||||
local host = ip_to_hostname(ip)
|
local host = ip_to_hostname(ip)
|
||||||
|
|
Loading…
Reference in New Issue