Avoid printing getFTLConfigValue return in statusFunc()

Signed-off-by: RD WebDesign <github@rdwebdesign.com.br>
This commit is contained in:
RD WebDesign 2023-10-18 02:07:06 -03:00
parent ed0dfa8b77
commit 2c7fa4a7b3
No known key found for this signature in database
GPG key ID: AE3C7FC910687F33

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";;