diff --git a/README.md b/README.md index 8e3aff4..93c9c96 100644 --- a/README.md +++ b/README.md @@ -45,6 +45,7 @@ STEAMGUARD="" (Optional, Steam Guard key if enabled. Use your most ```dockerfile CS2_SERVERNAME="changeme" (Set the visible name for your private server) +CS2_IP=0.0.0.0 (CS2 server listening IP address, 0.0.0.0 - all IP addresses on the local machine, empty - IP identified automatically) CS2_PORT=27015 (CS2 server listen port tcp_udp) CS2_LAN="0" (0 - LAN mode disabled, 1 - LAN Mode enabled) CS2_RCONPW="changeme" (RCON password) diff --git a/bullseye/Dockerfile b/bullseye/Dockerfile index 470ca3b..7de34a6 100644 --- a/bullseye/Dockerfile +++ b/bullseye/Dockerfile @@ -33,6 +33,7 @@ RUN set -x \ FROM build_stage AS bullseye-base ENV CS2_SERVERNAME="cs2 private server" \ + CS2_IP=0.0.0.0 \ CS2_PORT=27015 \ CS2_MAXPLAYERS=10 \ CS2_RCONPW="changeme" \ diff --git a/bullseye/etc/entry.sh b/bullseye/etc/entry.sh index f4c26b6..837b234 100644 --- a/bullseye/etc/entry.sh +++ b/bullseye/etc/entry.sh @@ -47,7 +47,7 @@ fi # Start Server eval "./cs2" -dedicated \ - -port "${CS2_PORT}" \ + -ip "${CS2_IP}" -port "${CS2_PORT}" \ -console \ -usercon \ -maxplayers_override "${CS2_MAXPLAYERS}" \