mirror of https://github.com/aredn/aredn.git
Ignore badly formatted services (#1228)
This commit is contained in:
parent
4717ab051c
commit
da71e6e26b
|
@ -184,6 +184,7 @@ local function get(validate)
|
|||
for _, service in ipairs(services)
|
||||
do
|
||||
local proto, hostname, port, path = service:match("^(%w+)://([%w%-%.]+):(%d+)(.*)|...|[^|]+$")
|
||||
if proto then
|
||||
local vs = vstate[hostname:lower()]
|
||||
if not vs or vs > now or dmz_mode == "0" then
|
||||
if port == "0" then
|
||||
|
@ -232,6 +233,7 @@ local function get(validate)
|
|||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
-- Generate new hosts and services as long as they're valid
|
||||
local old_hosts = hosts
|
||||
|
|
Loading…
Reference in New Issue