Browse Source

Merge pull request #19262 from stangri/openwrt-22.03-simple-adblock

[22.03] simple-adblock: bugfix for allow command
lilik-openwrt-22.03
Stan Grishin 2 years ago
committed by GitHub
parent
commit
bcafba4320
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      net/simple-adblock/files/simple-adblock.init

+ 2
- 2
net/simple-adblock/files/simple-adblock.init View File

@ -1189,7 +1189,7 @@ allow() {
done done
output 2 "Committing changes to config... " output 2 "Committing changes to config... "
if [ -n "$(uci_changes "$packageName")" ] && uci_commit "$packageName"; then 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 triggers
jsonOps set stats "$serviceName is blocking $(wc -l < "$outputFile") domains (with ${targetDNS})" jsonOps set stats "$serviceName is blocking $(wc -l < "$outputFile") domains (with ${targetDNS})"
output_ok; output_ok;
@ -1217,7 +1217,7 @@ allow() {
done done
output 2 "Committing changes to config... " output 2 "Committing changes to config... "
if [ -n "$(uci_changes "$packageName")" ] && uci_commit "$packageName"; then 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 triggers
jsonOps set stats "$serviceName is blocking $(wc -l < "$outputFile") domains (with ${targetDNS})" jsonOps set stats "$serviceName is blocking $(wc -l < "$outputFile") domains (with ${targetDNS})"
output_ok; output_ok;


Loading…
Cancel
Save