This commit is contained in:
CanbiZ
2025-05-15 15:39:21 +02:00
parent f947cb8338
commit 1110ed29fc
3 changed files with 12 additions and 11 deletions

View File

@@ -132,10 +132,10 @@ network_check() {
for HOST in "${GITHUB_HOSTS[@]}"; do
RESOLVEDIP=$(getent hosts "$HOST" | awk '{ print $1 }' | grep -E '(^([0-9]{1,3}\.){3}[0-9]{1,3}$)|(^[a-fA-F0-9:]+$)' | head -n1)
if [[ -z "$RESOLVEDIP" ]]; then
GITHUB_STATUS+="$HOST: ($DNSFAIL)"
GITHUB_STATUS+="$HOST:($DNSFAIL)"
DNS_FAILED=true
else
GITHUB_STATUS+=" $HOST: ($DNSOK)"
GITHUB_STATUS+=" $HOST:($DNSOK)"
fi
done