mirror of
https://github.com/pi-hole/pi-hole.git
synced 2024-11-25 07:33:43 +00:00
Exact search is the new default
Signed-off-by: Christian König <ckoenig@posteo.de>
This commit is contained in:
parent
f7ba059b94
commit
2005d04625
1 changed files with 5 additions and 5 deletions
|
@ -17,7 +17,7 @@
|
||||||
# Globals
|
# Globals
|
||||||
PI_HOLE_INSTALL_DIR="/opt/pihole"
|
PI_HOLE_INSTALL_DIR="/opt/pihole"
|
||||||
max_results="20"
|
max_results="20"
|
||||||
partial="true"
|
partial="false"
|
||||||
domain=""
|
domain=""
|
||||||
|
|
||||||
# Source color table
|
# Source color table
|
||||||
|
@ -29,11 +29,11 @@ colfile="/opt/pihole/COL_TABLE"
|
||||||
|
|
||||||
Help(){
|
Help(){
|
||||||
echo "Usage: pihole -q [option] <domain>
|
echo "Usage: pihole -q [option] <domain>
|
||||||
Example: 'pihole -q --exact domain.com'
|
Example: 'pihole -q --partial domain.com'
|
||||||
Query the adlists for a specified domain
|
Query the adlists for a specified domain
|
||||||
|
|
||||||
Options:
|
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
|
--all Return all query matches within the adlists
|
||||||
-h, --help Show this help dialog"
|
-h, --help Show this help dialog"
|
||||||
exit 0
|
exit 0
|
||||||
|
@ -141,7 +141,7 @@ Main(){
|
||||||
while [ "$#" -gt 0 ]; do
|
while [ "$#" -gt 0 ]; do
|
||||||
case "$1" in
|
case "$1" in
|
||||||
"-h" | "--help" ) Help;;
|
"-h" | "--help" ) Help;;
|
||||||
"--exact" ) partial="false";;
|
"--partial" ) partial="true";;
|
||||||
"--all" ) max_results=10000;; # hard-coded FTL limit
|
"--all" ) max_results=10000;; # hard-coded FTL limit
|
||||||
* ) domain=$1;;
|
* ) domain=$1;;
|
||||||
esac
|
esac
|
||||||
|
|
Loading…
Reference in a new issue