Add public ip resolution to bedrock-entry.sh (#687)

This commit is contained in:
Nick Horvath authored and GitHub committed 2026-10-04 17:39:19 -05:00
1 parent d1d4b77e31
commit bfa71eeea8
2 files changed
+11

No files matched your search

+8
View File
@@ -445,6 +445,14 @@ if [[ -n "$ALLOW_LIST_USERS" || -n "$WHITE_LIST_USERS" ]]; then
fi
fi
if [[ "$SERVER_UDP_PORTS" == *"<public_ip>"* ]]; then
echo "Replacing <public_ip> in $SERVER_UDP_PORTS"
public_ip=$(curl -s ifconfig.me)
echo "Public IP resolved to: $public_ip"
SERVER_UDP_PORTS="${SERVER_UDP_PORTS//<public_ip>/$public_ip}"
export SERVER_UDP_PORTS
fi
if [[ -n "$VARIABLES" ]]; then
echo "Setting variables"
mkdir -p config/default