Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/pi-hole/pi-hole.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/pihole
diff options
context:
space:
mode:
authorDL6ER <dl6er@dl6er.de>2021-04-16 12:44:54 +0300
committerDL6ER <dl6er@dl6er.de>2021-04-16 12:44:54 +0300
commitaa88be335e602a57e5c8cc70dea6db06454ebf93 (patch)
treefce1c49751df08289bb997b40ce14402ccab9452 /pihole
parentf90dffbf1a79a3da90526da2b7ed8e37946d36d1 (diff)
Acknowledge that IPV{4,6}_ADDRESS may not exist
Signed-off-by: DL6ER <dl6er@dl6er.de>
Diffstat (limited to 'pihole')
-rwxr-xr-xpihole5
1 files changed, 1 insertions, 4 deletions
diff --git a/pihole b/pihole
index f8085c8e..4fe80fc7 100755
--- a/pihole
+++ b/pihole
@@ -363,16 +363,13 @@ tailFunc() {
fi
echo -e " ${INFO} Press Ctrl-C to exit"
- # Retrieve IPv4/6 addresses
- source /etc/pihole/setupVars.conf
-
# Strip date from each line
# Color blocklist/blacklist/wildcard entries as red
# Color A/AAAA/DHCP strings as white
# Color everything else as gray
tail -f /var/log/pihole.log | sed -E \
-e "s,($(date +'%b %d ')| dnsmasq\[[0-9]*\]),,g" \
- -e "s,(.*(blacklisted |gravity blocked ).* is (0.0.0.0|::|NXDOMAIN|${IPV4_ADDRESS%/*}|${IPV6_ADDRESS:-NULL}).*),${COL_RED}&${COL_NC}," \
+ -e "s,(.*(blacklisted |gravity blocked ).* is (0.0.0.0|::|NXDOMAIN).*),${COL_RED}&${COL_NC}," \
-e "s,.*(query\\[A|DHCP).*,${COL_NC}&${COL_NC}," \
-e "s,.*,${COL_GRAY}&${COL_NC},"
exit 0