From 8574aa58709282a1f3e75eae0e64c3848ef5b8a4 Mon Sep 17 00:00:00 2001 From: Justin Ashworth Date: Tue, 24 May 2022 14:01:18 -0400 Subject: [PATCH] Remove curl command and replace with established usage of wget --- main.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.sh b/main.sh index d1505ae..6de0ad8 100755 --- a/main.sh +++ b/main.sh @@ -296,7 +296,7 @@ LOCAL_IP=$(ifconfig | grep -Eo 'inet (addr:)?([0-9]*\.){3}[0-9]*' | grep -Eo '([ HOST=$(hostname) || hostnamectl # Do a reverse DNS lookup on the cluster host and see if it is this local ip PUBLIC_HOST_DNS=$(dig +short "$CLUSTER_HOST") -PUBLIC_IP=$(curl ifconfig.me) +PUBLIC_IP=$(wget -nv --quiet -O - ifconfig.me) __log_debug "Hostname: ${HOST}" __log_debug "Local IP: ${LOCAL_IP}" __log_debug "ReverseDNS: ${PUBLIC_HOST_DNS}"