luci-app-adblock: change "refresh" action
authorDirk Brenken <dev@brenken.org>
Fri, 30 Oct 2020 19:30:37 +0000 (20:30 +0100)
committerDirk Brenken <dev@brenken.org>
Fri, 30 Oct 2020 19:30:37 +0000 (20:30 +0100)
* change "refresh" action to fix potential white-/blacklist issues

Signed-off-by: Dirk Brenken <dev@brenken.org>
applications/luci-app-adblock/htdocs/luci-static/resources/view/adblock/overview.js
applications/luci-app-adblock/root/usr/share/rpcd/acl.d/luci-app-adblock.json

index 9610735d9702799c16fc04cb4e5b67b2eca97197..e95702a75e51558a6fbb33fdff84793c996f697e 100644 (file)
@@ -252,7 +252,7 @@ return view.extend({
                                        E('button', {
                                                'class': 'cbi-button cbi-button-apply',
                                                'click': ui.createHandlerFn(this, function() {
-                                                       return handleAction('start');
+                                                       return handleAction('reload');
                                                })
                                        }, [ _('Refresh') ])
                                ])
index 3f52b7eea238d3bdcc9df50571669738e542a12d..58140badac1caf668969896ff850b3331ee8ac78 100644 (file)
@@ -18,7 +18,7 @@
                                "/sbin/logread -e adblock-": [ "exec" ],
                                "/usr/sbin/logread -e adblock-": [ "exec" ],
                                "/etc/init.d/adblock list" : [ "exec" ],
-                               "/etc/init.d/adblock start" : [ "exec" ],
+                               "/etc/init.d/adblock reload" : [ "exec" ],
                                "/etc/init.d/adblock suspend" : [ "exec" ],
                                "/etc/init.d/adblock resume" : [ "exec" ],
                                "/etc/init.d/adblock report * [0-9]* [a-z]* json" : [ "exec" ],