Remove setting old dmz value (#1657)

* Remove setting old dmz value (missed checkin)

* Fix firewall nat check
This commit is contained in:
Tim Wilkinson 2024-10-27 22:30:04 -07:00 committed by GitHub
parent e49dd7e73c
commit 4483384b8a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 1 additions and 6 deletions

View File

@ -37,7 +37,7 @@ LICENSE
### Lets export some variables to help other scripts we call later.
#Are we in NAT mode
if [ "$(/sbin/uci -q get aredn.@dmz[0].mode)" != "0" ]
if [ "$(/sbin/uci -c /etc/config.mesh -q get setup.globals.dmz_mode)" != "0" ]
then
export MESHFW_NATLAN=0
else

View File

@ -1039,11 +1039,6 @@ do
end
write_all("/tmp/new_config/wireless", config)
-- indicate whether lan is running in dmz mode
nc:set("aredn", "@dmz[0]", "mode", cfg.dmz_mode)
nc:commit("aredn")
-- generate the host and ethers files
local h = io.open("/etc/hosts", "w")
local e = io.open("/etc/ethers", "w")