1
0
mirror of https://github.com/pi-hole/pi-hole synced 2025-01-03 12:40:56 +00:00

Merge pull request #2090 from Razvici/master

Update pihole locahost probe for DNS status
This commit is contained in:
Mark Drobnak 2018-04-12 11:17:33 -04:00 committed by GitHub
commit c2fcbbb0c6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

2
pihole
View File

@ -476,7 +476,7 @@ statusFunc() {
local addnConfigs
# 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
echo -e " ${TICK} DNS service is running"
fi