From 2005d04625c48948c1010563dac3a060f114f311 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20K=C3=B6nig?= Date: Sat, 14 Oct 2023 21:50:57 +0200 Subject: [PATCH] Exact search is the new default MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Christian König --- advanced/Scripts/query.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/advanced/Scripts/query.sh b/advanced/Scripts/query.sh index a26d249c..27a33f39 100755 --- a/advanced/Scripts/query.sh +++ b/advanced/Scripts/query.sh @@ -17,7 +17,7 @@ # Globals PI_HOLE_INSTALL_DIR="/opt/pihole" max_results="20" -partial="true" +partial="false" domain="" # Source color table @@ -29,13 +29,13 @@ colfile="/opt/pihole/COL_TABLE" Help(){ echo "Usage: pihole -q [option] -Example: 'pihole -q --exact domain.com' +Example: 'pihole -q --partial domain.com' Query the adlists for a specified domain Options: - --exact Search the adlists for exact domain matches + --partial Search the adlists for partially matching domains --all Return all query matches within the adlists - -h, --help Show this help dialog" + -h, --help Show this help dialog" exit 0 } @@ -141,7 +141,7 @@ Main(){ while [ "$#" -gt 0 ]; do case "$1" in "-h" | "--help" ) Help;; - "--exact" ) partial="false";; + "--partial" ) partial="true";; "--all" ) max_results=10000;; # hard-coded FTL limit * ) domain=$1;; esac