|
|
@ -345,7 +345,7 @@ analyze_ports() {
|
|
|
|
|
|
|
|
|
|
|
|
statusFunc() {
|
|
|
|
statusFunc() {
|
|
|
|
# Determine if there is pihole-FTL service is listening
|
|
|
|
# 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)"
|
|
|
|
ftl_pid_file="$(getFTLPIDFile)"
|
|
|
|
|
|
|
|
|
|
|
@ -375,7 +375,8 @@ statusFunc() {
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
# Determine if Pi-hole's blocking is enabled
|
|
|
|
# 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
|
|
|
|
case "${1}" in
|
|
|
|
"web") echo "$port";;
|
|
|
|
"web") echo "$port";;
|
|
|
|
*) echo -e " ${TICK} Pi-hole blocking is enabled";;
|
|
|
|
*) echo -e " ${TICK} Pi-hole blocking is enabled";;
|
|
|
|