Update pihole lolcahost probe for DNS status

Signed-off-by: Razvan Radu <ramset@gmail.com>
This commit is contained in:
Razvan Radu 2018-04-05 11:09:07 -06:00
parent fbee18e24d
commit 7361d5d3ea

2
pihole
View file

@ -476,7 +476,7 @@ statusFunc() {
local addnConfigs local addnConfigs
# Determine if service is running on port 53 (Cr: https://superuser.com/a/806331) # Determine if service is running on port 53 (Cr: https://superuser.com/a/806331)
if (echo > /dev/tcp/localhost/53) >/dev/null 2>&1; then if (echo > /dev/tcp/127.0.0.1/53) >/dev/null 2>&1; then
if [[ "${1}" != "web" ]]; then if [[ "${1}" != "web" ]]; then
echo -e " ${TICK} DNS service is running" echo -e " ${TICK} DNS service is running"
fi fi