From 284ae92dee5484936752819dbe6c9aca7590d1d7 Mon Sep 17 00:00:00 2001 From: cedliang <62864170+cedliang@users.noreply.github.com> Date: Mon, 20 May 2024 17:31:59 +1000 Subject: [PATCH] Use PORT environment variable for headless clients --- launch.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/launch.py b/launch.py index a4582f1..f082c31 100644 --- a/launch.py +++ b/launch.py @@ -104,7 +104,7 @@ def env_defined(key): launch += ' -config="/tmp/arma3.cfg"' client_launch = launch - client_launch += " -client -connect=127.0.0.1" + client_launch += " -client -connect=127.0.0.1 -port={}".format(os.environ["PORT"]) if "password" in config_values: client_launch += " -password={}".format(config_values["password"])