From 3f89bb429052c80f2b513bd4ad79a82195d58d34 Mon Sep 17 00:00:00 2001 From: Tim Wilkinson Date: Tue, 6 Sep 2022 07:57:06 -0700 Subject: [PATCH] Fix bad match for NAT dhcp address. (#500) --- files/www/cgi-bin/setup | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/files/www/cgi-bin/setup b/files/www/cgi-bin/setup index 3c3761ad..7ad79aa1 100755 --- a/files/www/cgi-bin/setup +++ b/files/www/cgi-bin/setup @@ -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")