Add blacklisting wildcard support

This commit is contained in:
DL6ER
2016-12-31 12:49:04 +00:00
parent 1f9b0f7cef
commit 40798da6b1
2 changed files with 89 additions and 28 deletions

6
pihole
View File

@@ -37,6 +37,11 @@ blacklistFunc() {
exit 0
}
wildcardFunc() {
"${PI_HOLE_SCRIPT_DIR}"/list.sh "$@"
exit 0
}
debugFunc() {
"${PI_HOLE_SCRIPT_DIR}"/piholeDebug.sh
exit 0
@@ -274,6 +279,7 @@ fi
case "${1}" in
"-w" | "whitelist" ) whitelistFunc "$@";;
"-b" | "blacklist" ) blacklistFunc "$@";;
"-wild" | "wildcard" ) wildcardFunc "$@";;
"-d" | "debug" ) debugFunc;;
"-f" | "flush" ) flushFunc;;
"-up" | "updatePihole" ) updatePiholeFunc;;