summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-app-banip/luasrc/controller
diff options
context:
space:
mode:
authorDirk Brenken <dev@brenken.org>2019-09-09 16:51:42 +0200
committerDirk Brenken <dev@brenken.org>2019-09-09 16:51:42 +0200
commitf21f4bd7e5cf74bb37c2acc35d0bb8aea489cf3f (patch)
tree7bc1ede395bc5cf1c645c5ed1e94c3a6987dd6a3 /applications/luci-app-banip/luasrc/controller
parentdffe9ca0a4dffce5ae3df617e67cb69acccca01b (diff)
luci-app-banip: sync with banIP 0.2.0
* see details in package PR Signed-off-by: Dirk Brenken <dev@brenken.org>
Diffstat (limited to 'applications/luci-app-banip/luasrc/controller')
-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")