1
0
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:
RD WebDesign 2025-05-20 19:46:28 -03:00 committed by GitHub
parent 5f60860a17
commit 6ba6b0f015
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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 "."