mirror of https://github.com/aredn/aredn.git
Remove setting old dmz value (#1657)
* Remove setting old dmz value (missed checkin) * Fix firewall nat check
This commit is contained in:
parent
e49dd7e73c
commit
4483384b8a
|
@ -37,7 +37,7 @@ LICENSE
|
||||||
### Lets export some variables to help other scripts we call later.
|
### Lets export some variables to help other scripts we call later.
|
||||||
|
|
||||||
#Are we in NAT mode
|
#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
|
then
|
||||||
export MESHFW_NATLAN=0
|
export MESHFW_NATLAN=0
|
||||||
else
|
else
|
||||||
|
|
|
@ -1039,11 +1039,6 @@ do
|
||||||
end
|
end
|
||||||
write_all("/tmp/new_config/wireless", config)
|
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
|
-- generate the host and ethers files
|
||||||
local h = io.open("/etc/hosts", "w")
|
local h = io.open("/etc/hosts", "w")
|
||||||
local e = io.open("/etc/ethers", "w")
|
local e = io.open("/etc/ethers", "w")
|
||||||
|
|
Loading…
Reference in New Issue