Skip to content

Commit

Permalink
Fix whitelisting from the query log (and DB query log)
Browse files Browse the repository at this point in the history
Signed-off-by: Mcat12 <[email protected]>
  • Loading branch information
AzureMarker committed Aug 26, 2018
1 parent ae3fdb4 commit b1549f1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion scripts/pi-hole/js/db_queries.js
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ $(document).ready(function() {
});
$("#all-queries tbody").on( "click", "button", function () {
var data = tableApi.row( $(this).parents("tr") ).data();
if (data[4] === "1")
if (data[4] === 1 || data[4] === 4 || data[5] === 5)
{
add(data[2],"white");
}
Expand Down
2 changes: 1 addition & 1 deletion scripts/pi-hole/js/queries.js
Original file line number Diff line number Diff line change
Expand Up @@ -352,7 +352,7 @@ $(document).ready(function() {

$("#all-queries tbody").on( "click", "button", function () {
var data = tableApi.row( $(this).parents("tr") ).data();
if (data[4] === "1" || data[4] === "5")
if (data[4] === "1" || data[4] === "4" || data[4] === "5")
{
add(data[2],"white");
}
Expand Down

0 comments on commit b1549f1

Please sign in to comment.