Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

modify the autocofig public IP to use flr DNS instead of ipfy #24

Merged
merged 2 commits into from
Jan 10, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ set -eo pipefail

if [ "$AUTOCONFIGURE_PUBLIC_IP" = "1" ];
then
if [ "$PUBLIC_IP" = "" ];
if [ -z "$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