simple-adblock: bugfix for allow command 19261/head
authorStan Grishin <stangri@melmac.ca>
Fri, 26 Aug 2022 18:43:45 +0000 (18:43 +0000)
committerStan Grishin <stangri@melmac.ca>
Fri, 26 Aug 2022 18:43:45 +0000 (18:43 +0000)
Signed-off-by: Stan Grishin <stangri@melmac.ca>
net/simple-adblock/files/simple-adblock.init

index 0a7354ea6f73cbf515f1f3e328c803a747ce5fbf..119447c514ef9d3249e6de929caded45f838bb8a 100644 (file)
@@ -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;