luci-mod-admin-full: restart the firewall instead of reloading it
authorJo-Philipp Wich <jow@openwrt.org>
Fri, 3 Jul 2015 14:59:37 +0000 (16:59 +0200)
committerJo-Philipp Wich <jow@openwrt.org>
Fri, 3 Jul 2015 14:59:51 +0000 (16:59 +0200)
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
modules/luci-mod-admin-full/luasrc/controller/admin/status.lua

index 2d81caf242c6dd86a195a684cb389f2b28a67983..1ceb24d16af6a5532b216c4fe86d2452b0b5bf47 100644 (file)
@@ -51,7 +51,7 @@ function action_iptables()
                        luci.dispatcher.build_url("admin", "status", "iptables")
                )
        elseif luci.http.formvalue("restart") == "1" then
-               luci.util.exec("/etc/init.d/firewall reload")
+               luci.util.exec("/etc/init.d/firewall restart")
                luci.http.redirect(
                        luci.dispatcher.build_url("admin", "status", "iptables")
                )