Missing lanlimit when print port in nat mode (#328)

This commit is contained in:
Tim Wilkinson 2022-04-08 02:15:13 -07:00 committed by GitHub
parent ce05aeb727
commit aec90d47ae
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -1077,6 +1077,7 @@ function print_forwarding()
html.print("<td colspan=3><select name=dmz_ip onChange='form.submit()' ") html.print("<td colspan=3><select name=dmz_ip onChange='form.submit()' ")
html.print("title='Send all other inbound traffic to this host'>") html.print("title='Send all other inbound traffic to this host'>")
html.print("<option value=''>None</option>") html.print("<option value=''>None</option>")
local lanlimit = nixio.bit.lshift(1, 32 - netmask_to_cidr(lanmask)) - 2
for i = 1,lanlimit for i = 1,lanlimit
do do
local selip = decimal_to_ip(lannet_d + i) local selip = decimal_to_ip(lannet_d + i)