summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-app-banip/luasrc/controller/banip.lua
diff options
context:
space:
mode:
Diffstat (limited to 'applications/luci-app-banip/luasrc/controller/banip.lua')
-rw-r--r--applications/luci-app-banip/luasrc/controller/banip.lua4
1 files changed, 3 insertions, 1 deletions
diff --git a/applications/luci-app-banip/luasrc/controller/banip.lua b/applications/luci-app-banip/luasrc/controller/banip.lua
index 42328d7ea4..6ada1d5167 100644
--- a/applications/luci-app-banip/luasrc/controller/banip.lua
+++ b/applications/luci-app-banip/luasrc/controller/banip.lua
@@ -30,7 +30,9 @@ function index()
end
function ban_action(name)
- if name == "do_reload" then
+ if name == "do_refresh" then
+ luci.sys.call("/etc/init.d/banip refresh >/dev/null 2>&1")
+ elseif name == "do_reload" then
luci.sys.call("/etc/init.d/banip reload >/dev/null 2>&1")
end
luci.http.prepare_content("text/plain")