mirror of https://github.com/aredn/aredn.git
Dont validate hostname in NAT mode.
Hostname is always valid for NAT but not in the valid_hosts table.
This commit is contained in:
parent
8a2b6f968d
commit
1824b945c8
|
@ -173,7 +173,7 @@ if validate then
|
||||||
for _, service in ipairs(services)
|
for _, service in ipairs(services)
|
||||||
do
|
do
|
||||||
local proto, hostname, port, path = service:match("^(%w+)://([%w%-%.]+):(%d+)(.*)|...|[^|]+$")
|
local proto, hostname, port, path = service:match("^(%w+)://([%w%-%.]+):(%d+)(.*)|...|[^|]+$")
|
||||||
if valid_hosts[hostname:lower()] then
|
if valid_hosts[hostname:lower()] or dmz_mode == "0" then
|
||||||
if port == "0" then
|
if port == "0" then
|
||||||
-- no port so not a link - we can only check the hostname so have to assume the service is good
|
-- no port so not a link - we can only check the hostname so have to assume the service is good
|
||||||
valid_services[#valid_services + 1] = service
|
valid_services[#valid_services + 1] = service
|
||||||
|
|
Loading…
Reference in New Issue