Add public ip resolution to bedrock-entry.sh (#687)
This commit is contained in:
1 parent
d1d4b77e31
commit
bfa71eeea8
2 files changed
+11
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user