From c8fb6aca6a405edb702d71b6783246513bd7d143 Mon Sep 17 00:00:00 2001 From: Price Hiller Date: Tue, 19 Dec 2023 04:24:23 -0600 Subject: [PATCH] fix: only provide the base game & query port to Squad CLI --- modules/squad-server.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/squad-server.nix b/modules/squad-server.nix index 7a3a3f6..6d731d9 100644 --- a/modules/squad-server.nix +++ b/modules/squad-server.nix @@ -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}