Skip to content

Commit

Permalink
Use PORT environment variable for headless clients (#76)
Browse files Browse the repository at this point in the history
  • Loading branch information
cedliang authored May 22, 2024
1 parent a08ee4b commit b735c51
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion launch.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"])

Expand Down

0 comments on commit b735c51

Please sign in to comment.