Dont validate hostname in NAT mode.

Hostname is always valid for NAT but not in the valid_hosts table.
This commit is contained in:
Tim Wilkinson 2022-08-21 21:58:19 -07:00 committed by Joe AE6XE
parent 8a2b6f968d
commit 1824b945c8
1 changed files with 1 additions and 1 deletions

View File

@ -173,7 +173,7 @@ if validate then
for _, service in ipairs(services)
do
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
-- 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