1
0
mirror of https://github.com/pi-hole/pi-hole synced 2024-11-18 06:08:21 +00:00

Avoid printing getFTLConfigValue return in statusFunc() (#5442)

This commit is contained in:
yubiuser 2023-10-18 13:19:02 +02:00 committed by GitHub
commit 2deadb2e4a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

5
pihole
View File

@ -345,7 +345,7 @@ analyze_ports() {
statusFunc() {
# Determine if there is pihole-FTL service is listening
local pid port ftl_pid_file
local pid port ftl_pid_file block_status
ftl_pid_file="$(getFTLPIDFile)"
@ -375,7 +375,8 @@ statusFunc() {
fi
# Determine if Pi-hole's blocking is enabled
if getFTLConfigValue dns.blocking.active; then
block_status=$(getFTLConfigValue dns.blocking.active)
if [ ${block_status} == "true" ]; then
case "${1}" in
"web") echo "$port";;
*) echo -e " ${TICK} Pi-hole blocking is enabled";;