From f40c7329f92920743406d6e21cfd1a78bd7f2bca Mon Sep 17 00:00:00 2001 From: BrettMayson Date: Sun, 21 Apr 2024 19:05:31 -0600 Subject: [PATCH 1/2] require RCON password to enable --- launch.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/launch.py b/launch.py index 9a2ed83..bbd50ee 100644 --- a/launch.py +++ b/launch.py @@ -69,7 +69,7 @@ def bool_str(text): else: config["a2s"] = None - if env_defined("RCON_ADDRESS") and env_defined("RCON_PORT"): + if env_defined("RCON_ADDRESS") and env_defined("RCON_PORT") and env_defined("RCON_PASSWORD"): config["rcon"] = { "address": os.environ["RCON_ADDRESS"], "port": int(os.environ["RCON_PORT"]), From 79f8466cfa8abd74397fe1d0d6fe69b86c1a2561 Mon Sep 17 00:00:00 2001 From: BrettMayson Date: Sun, 21 Apr 2024 19:09:41 -0600 Subject: [PATCH 2/2] fmt --- launch.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/launch.py b/launch.py index bbd50ee..b2da34d 100644 --- a/launch.py +++ b/launch.py @@ -69,7 +69,11 @@ def bool_str(text): else: config["a2s"] = None - if env_defined("RCON_ADDRESS") and env_defined("RCON_PORT") and env_defined("RCON_PASSWORD"): + if ( + env_defined("RCON_ADDRESS") + and env_defined("RCON_PORT") + and env_defined("RCON_PASSWORD") + ): config["rcon"] = { "address": os.environ["RCON_ADDRESS"], "port": int(os.environ["RCON_PORT"]),