fix: only provide the base game & query port to Squad CLI

This commit is contained in:
Price Hiller 2023-12-19 04:24:23 -06:00
parent 8fe32f8d70
commit c8fb6aca6a
Signed by: Price
SSH Key Fingerprint: SHA256:Y4S9ZzYphRn1W1kbJerJFO6GGsfu9O70VaBSxJO7dF8

View File

@ -1037,8 +1037,8 @@ in
__EOS__
LD_LIBRARY_PATH="${pkgs.stdenv.cc.cc.lib}/lib" ./SquadGameServer.sh \
Port=${builtins.toString cfg.gamePort} \
QueryPort=${builtins.toString cfg.queryPort} \
Port=${builtins.toString (builtins.elemAt cfg.gamePort 0)} \
QueryPort=${builtins.toString (builtins.elemAt cfg.queryPort 0)} \
FIXEDMAXTICKRATE=${builtins.toString cfg.config.server.maxTickRate} \
FIXEDMAXPLAYERS=${builtins.toString cfg.config.server.settings.MaxPlayers} \
beaconport=${builtins.toString cfg.beaconPort}