Make sure dmz_dhcp_end has a value, even in NAT mode (#1163)

This commit is contained in:
Tim Wilkinson 2024-04-16 16:28:46 -07:00 committed by GitHub
parent 86271040a0
commit b452ba20e7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 0 deletions

View File

@ -286,6 +286,9 @@ if dmz_mode ~= 0 then
parms.dmz_lan_mask = dmz_lan_mask parms.dmz_lan_mask = dmz_lan_mask
parms.dmz_dhcp_start = dmz_dhcp_start parms.dmz_dhcp_start = dmz_dhcp_start
parms.dmz_dhcp_end = dmz_dhcp_end parms.dmz_dhcp_end = dmz_dhcp_end
else
dmz_dhcp_end = dmz_dhcp_start
parms.dmz_dhcp_end = dmz_dhcp_end
end end
parms.dhcp_limit = dhcp_end - dhcp_start + 1 parms.dhcp_limit = dhcp_end - dhcp_start + 1