Only preserve wan_intf if set (#348)

This commit is contained in:
Tim Wilkinson 2022-04-27 17:38:16 -07:00 committed by GitHub
parent 1c6c596d38
commit e3558c02de
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -1310,7 +1310,9 @@ html.print("</select></td><td align=left>NTP Server</td><td><input type=text nam
hidden[#hidden + 1] = "<input type=hidden name=reload value=1>" hidden[#hidden + 1] = "<input type=hidden name=reload value=1>"
hidden[#hidden + 1] = "<input type=hidden name=dtdlink_ip value='" .. dtdlink_ip .. "'>" hidden[#hidden + 1] = "<input type=hidden name=dtdlink_ip value='" .. dtdlink_ip .. "'>"
hidden[#hidden + 1] = "<input type=hidden name=wan_intf value='" .. (wan_intf or "") .. "'>" if wan_intf then
hidden[#hidden + 1] = "<input type=hidden name=wan_intf value='" .. wan_intf .. "'>"
end
for _,hid in ipairs(hidden) for _,hid in ipairs(hidden)
do do