Fix bad match for NAT dhcp address. (#500)

This commit is contained in:
Tim Wilkinson 2022-09-06 07:57:06 -07:00 committed by GitHub
parent b6a4ee6bb2
commit 3f89bb4290
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -611,8 +611,8 @@ if parms.button_save then
err("invalid LAN IP address")
else
if lan_dhcp ~= "" then
local start_addr = lan_ip:match("^(.*%.)%d$") .. dhcp_start
local end_addr = lan_ip:match("^(.*%.)%d$") .. dhcp_end
local start_addr = lan_ip:match("^(.*%.)%d+$") .. dhcp_start
local end_addr = lan_ip:match("^(.*%.)%d+$") .. dhcp_end
if not (validate_ip_netmask(start_addr, lan_mask) and validate_same_subnet(start_addr, lan_ip, lan_mask)) then
err("invalid DHCP start address")