Try to determine WAN IP via ipify.org
This commit is contained in:
parent
519e1946ca
commit
eb3d051cc7
|
@ -61,7 +61,7 @@
|
||||||
<connection_uploadrate>512</connection_uploadrate> <!-- Kbps (kilo bits per second) -->
|
<connection_uploadrate>512</connection_uploadrate> <!-- Kbps (kilo bits per second) -->
|
||||||
<connection_downloadrate>8192</connection_downloadrate> <!-- Kbps -->
|
<connection_downloadrate>8192</connection_downloadrate> <!-- Kbps -->
|
||||||
|
|
||||||
<force_ip_address></force_ip_address>
|
<force_ip_address>@FORCE_IP_ADDRESS@</force_ip_address>
|
||||||
<server_port>@SERVER_PORT@</server_port>
|
<server_port>@SERVER_PORT@</server_port>
|
||||||
<server_p2p_port>@SERVER_P2P_PORT@</server_p2p_port>
|
<server_p2p_port>@SERVER_P2P_PORT@</server_p2p_port>
|
||||||
<client_port>0</client_port>
|
<client_port>0</client_port>
|
||||||
|
|
|
@ -18,6 +18,8 @@ SERVER_PORT=${SERVER_PORT:-2350} && config+=( "SERVER_PORT" )
|
||||||
echo "INFO | SERVER_PORT: ${SERVER_PORT}"
|
echo "INFO | SERVER_PORT: ${SERVER_PORT}"
|
||||||
SERVER_P2P_PORT=${SERVER_P2P_PORT:-3450} && config+=( "SERVER_P2P_PORT" )
|
SERVER_P2P_PORT=${SERVER_P2P_PORT:-3450} && config+=( "SERVER_P2P_PORT" )
|
||||||
echo "INFO | SERVER_P2P_PORT: ${SERVER_P2P_PORT}"
|
echo "INFO | SERVER_P2P_PORT: ${SERVER_P2P_PORT}"
|
||||||
|
FORCE_IP_ADDRESS=${FORCE_IP_ADDRESS:-${curl https://api.ipify.org}} && config += ( "FORCE_IP_ADDRESS" )
|
||||||
|
echo "INFO | FORCE_IP_ADDRESS: ${FORCE_IP_ADDRESS}"
|
||||||
SERVER_NAME=${SERVER_NAME:-Trackmania Server} && config+=( "SERVER_NAME" )
|
SERVER_NAME=${SERVER_NAME:-Trackmania Server} && config+=( "SERVER_NAME" )
|
||||||
echo "INFO | SERVER_NAME: ${SERVER_NAME}"
|
echo "INFO | SERVER_NAME: ${SERVER_NAME}"
|
||||||
SERVER_COMMENT=${SERVER_COMMENT:-This is a Trackmania Server} && config+=( "SERVER_COMMENT" )
|
SERVER_COMMENT=${SERVER_COMMENT:-This is a Trackmania Server} && config+=( "SERVER_COMMENT" )
|
||||||
|
|
Loading…
Reference in New Issue