mirror of
https://github.com/pi-hole/pi-hole.git
synced 2025-07-28 16:14:07 +02:00
Function gravity_CheckDNSResolutionAvailable()
should return 0 if DNS resolution is available (#6240)
This commit is contained in:
commit
5aadc5f475
@ -356,7 +356,7 @@ gravity_CheckDNSResolutionAvailable() {
|
|||||||
if getent hosts github.com &> /dev/null; then
|
if getent hosts github.com &> /dev/null; then
|
||||||
# If we reach this point, DNS resolution is available
|
# If we reach this point, DNS resolution is available
|
||||||
echo -e "${OVER} ${TICK} DNS resolution is available"
|
echo -e "${OVER} ${TICK} DNS resolution is available"
|
||||||
break
|
return 0
|
||||||
fi
|
fi
|
||||||
# Append one dot for each second waiting
|
# Append one dot for each second waiting
|
||||||
echo -ne "."
|
echo -ne "."
|
||||||
|
Loading…
x
Reference in New Issue
Block a user