From 5828fd836c28f118102f73f8bf0924149ceed876 Mon Sep 17 00:00:00 2001 From: Christian Krakau-Louis Date: Sun, 7 Sep 2025 13:17:51 +0200 Subject: [PATCH] Use IPv4 for public IP detection --- install_guac.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install_guac.sh b/install_guac.sh index e8fb03b..ec3c7d1 100644 --- a/install_guac.sh +++ b/install_guac.sh @@ -58,7 +58,7 @@ done # --- Hostname detection (reverse DNS via Google DNS) --- SERVER_NAME=${SERVER_NAME:-} if [ -z "$SERVER_NAME" ]; then - PUBIP=$(curl -s ifconfig.me || echo "") + PUBIP=$(curl -4 -s ifconfig.me || echo "") if [ -n "$PUBIP" ]; then apt-get install -y -qq dnsutils >/dev/null 2>&1 || true REVNAME=$(dig +short -x $PUBIP @8.8.8.8 | sed 's/\.$//' || true)