Skip to content

Commit

Permalink
modify the autocofig public IP to use flr DNS instead of ipfy
Browse files Browse the repository at this point in the history
  • Loading branch information
mkamau-flr committed Jan 9, 2024
1 parent e9e457e commit 731e227
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ then
if [ "$PUBLIC_IP" = "" ];
then
echo "Autoconfiguring public IP"
PUBLIC_IP=$(curl -s https://api.ipify.org/)
PUBLIC_IP=$(curl -s -m 10 https://flare.network/cdn-cgi/trace | grep 'ip=' | cut -d'=' -f2)
echo " Got public address '${PUBLIC_IP}'"
else
echo "/!\\ AUTOCONFIGURE_PUBLIC_IP is enabled, but PUBLIC_IP is already set to '$PUBLIC_IP'! Skipping autoconfigure and using current PUBLIC_IP value!"
Expand Down Expand Up @@ -49,7 +49,7 @@ then
echo " Got bootstrap ids: '${BOOTSTRAP_IDS}'"
fi

/app/build/avalanchego \
exec /app/build/avalanchego \
--http-host=$HTTP_HOST \
--http-port=$HTTP_PORT \
--staking-port=$STAKING_PORT \
Expand Down

0 comments on commit 731e227

Please sign in to comment.