mirror of
https://github.com/pi-hole/pi-hole
synced 2025-07-25 08:28:11 +00:00
Return 1 only if resolution fails
Function gravity_CheckDNSResolutionAvailable() should return 0 if DNS resolution is available Signed-off-by: RD WebDesign <github@rdwebdesign.com.br>
This commit is contained in:
parent
5f60860a17
commit
6ba6b0f015
@ -356,7 +356,7 @@ gravity_CheckDNSResolutionAvailable() {
|
||||
if getent hosts github.com &> /dev/null; then
|
||||
# If we reach this point, DNS resolution is available
|
||||
echo -e "${OVER} ${TICK} DNS resolution is available"
|
||||
break
|
||||
return 0
|
||||
fi
|
||||
# Append one dot for each second waiting
|
||||
echo -ne "."
|
||||
|
Loading…
Reference in New Issue
Block a user