update 2022-11-27 23:36:56

This commit is contained in:
github-actions[bot] 2022-11-27 23:36:56 +08:00
parent 9f47ab1f01
commit faf6f99f78

View File

@ -66,11 +66,13 @@ add_wizard() {
[ -n "$lan_dns" ] || lan_dns='223.5.5.5'
[ -n "$dhcp" ] && uci -q set dhcp.lan.ignore="1" || uci -q del dhcp.lan.ignore
uci -q set firewall.@zone[0].masq='1'
uci -q set network.wan.proto='none'
elif [ "${siderouter}" == "0" ]; then
uci -q del network.lan.gateway
uci -q del dhcp.lan.ignore
uci -q del network.lan.dns
uci -q del firewall.@zone[0].masq
uci -q set network.wan.proto='dhcp'
fi
fi