mirror of
https://github.com/openwrt/packages.git
synced 2025-12-26 11:16:31 +04:00
simple-adblock: bugfix for allow command
Signed-off-by: Stan Grishin <stangri@melmac.ca>
This commit is contained in:
@@ -1189,7 +1189,7 @@ allow() {
|
||||
done
|
||||
output 2 "Committing changes to config... "
|
||||
if [ -n "$(uci_changes "$packageName")" ] && uci_commit "$packageName"; then
|
||||
allowed_domains="$(uci_get_list "$packageName" 'config' 'allowed_domain')"
|
||||
allowed_domains="$(uci_get "$packageName" 'config' 'allowed_domain')"
|
||||
jsonOps set triggers
|
||||
jsonOps set stats "$serviceName is blocking $(wc -l < "$outputFile") domains (with ${targetDNS})"
|
||||
output_ok;
|
||||
@@ -1217,7 +1217,7 @@ allow() {
|
||||
done
|
||||
output 2 "Committing changes to config... "
|
||||
if [ -n "$(uci_changes "$packageName")" ] && uci_commit "$packageName"; then
|
||||
allowed_domains="$(uci_get_list "$packageName" 'config' 'allowed_domain')"
|
||||
allowed_domains="$(uci_get "$packageName" 'config' 'allowed_domain')"
|
||||
jsonOps set triggers
|
||||
jsonOps set stats "$serviceName is blocking $(wc -l < "$outputFile") domains (with ${targetDNS})"
|
||||
output_ok;
|
||||
|
||||
Reference in New Issue
Block a user