From b452ba20e741b39b370d3c336dd3d0fcc5a11d52 Mon Sep 17 00:00:00 2001 From: Tim Wilkinson Date: Tue, 16 Apr 2024 16:28:46 -0700 Subject: [PATCH] Make sure dmz_dhcp_end has a value, even in NAT mode (#1163) --- files/www/cgi-bin/setup | 3 +++ 1 file changed, 3 insertions(+) diff --git a/files/www/cgi-bin/setup b/files/www/cgi-bin/setup index 7a20835a..c66ae86c 100755 --- a/files/www/cgi-bin/setup +++ b/files/www/cgi-bin/setup @@ -286,6 +286,9 @@ if dmz_mode ~= 0 then parms.dmz_lan_mask = dmz_lan_mask parms.dmz_dhcp_start = dmz_dhcp_start parms.dmz_dhcp_end = dmz_dhcp_end +else + dmz_dhcp_end = dmz_dhcp_start + parms.dmz_dhcp_end = dmz_dhcp_end end parms.dhcp_limit = dhcp_end - dhcp_start + 1