Skip to content

Commit

Permalink
no touch masq settings
Browse files Browse the repository at this point in the history
Signed-off-by: peter-tank <30540412+peter-tank@users.noreply.github.com>
  • Loading branch information
peter-tank committed Jan 13, 2020
1 parent dc2a42a commit b02a69d
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 6 deletions.
1 change: 0 additions & 1 deletion luasrc/model/cbi/fullconenat.lua
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ o.cfgvalue = function (self, sec)
end
o.write = function (self, sec, val)
val = has_module and val or "disable"
zn:set("masq", val == "disable" and 1 or 0)
if fw3_buildin then
def:set("fullcone", val == "all" and 1 or 0)
zn:set("fullcone", val == "all" and 1 or 0)
Expand Down
5 changes: 0 additions & 5 deletions root/etc/init.d/fullconenat
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ start(){
return 1
fi
fullcone=0
masq=0
fullconenat_ip=$(uci get fullconenat.config.fullconenat_ip 2>/dev/null)
if [ "$mode" == "ips" ]; then
sed -i '/FULLCONENAT/d' /etc/firewall.user
Expand All @@ -36,14 +35,11 @@ start(){
else
fullcone=1
fi
else
masq=1
fi
[ $fw3_buildin -eq 0 ] && {
uci set firewall.@defaults[0].fullcone=$fullcone
uci set firewall.@zone[1].fullcone=$fullcone
}
uci set firewall.@zone[1].masq=$masq
uci commit firewall
/etc/init.d/firewall restart
}
Expand All @@ -61,7 +57,6 @@ stop(){
[ $re -eq 0 ] && {
uci set firewall.@defaults[0].fullcone=0
uci set firewall.@zone[1].fullcone=0
uci set firewall.@zone[1].masq=1
uci commit firewall
/etc/init.d/firewall restart
}
Expand Down

0 comments on commit b02a69d

Please sign in to comment.