update entry.sh to reference to host.docker.internal instead of localhost, and port 27016

This commit is contained in:
Brett Caswell 2020-02-26 18:31:25 -06:00
parent 3f5100294f
commit 3d0731586f

View file

@ -17,13 +17,15 @@ if [[ "$HLTV_ROTATE" = "1" ]]; then
fi
if [[ "$HLTV" = "1" ]]; then
echo "Starting HLTV"
echo "Starting HLTV `host.docker.internal`:27016"
export LD_LIBRARY_PATH=.
./hltv +serverpassword europe +connect host.docker.internal:27015 +record demos/gathers >> /home/steam/hlds/ns/demos/hltv-`date +%F-%h:%m`.log
./hltv +serverpassword europe +connect host.docker.internal:27016 +record demos/gathers >> /home/steam/hlds/ns/demos/hltv-`date +%F-%h:%m`.log
echo "Started"
elif [[ "$HLDS" = "1" ]]; then
echo "Starting HLDS"
echo "Starting HLDS -ip `host.docker.internal` -port 27016"
export LD_LIBRARY_PATH=.
./hlds_run -game ns +maxplayers 32 +log on +map ns_veil +exec ns/server.cfg -pingboost 3 +sys_ticrate 1000
./hlds_run -game ns +maxplayers 32 +log on +map ns_veil +exec ns/server.cfg -port 27016 -pingboost 3 +sys_ticrate 1000 -ip host.docker.internal
echo "Started"
fi
bash