From 431cf8ffdce46527632e8986cd3909ed9a4541bc Mon Sep 17 00:00:00 2001 From: megascatterbomb Date: Mon, 23 Sep 2024 21:37:56 +1200 Subject: [PATCH] derp --- masterbase/app.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/masterbase/app.py b/masterbase/app.py index 5de70e6..364c84e 100644 --- a/masterbase/app.py +++ b/masterbase/app.py @@ -84,7 +84,9 @@ def session_id( steam_id = steam_id_from_api_key(engine, api_key) fake_ip = unquote(fake_ip) - if not fake_ip.startswith("169"): + if not fake_ip.startswith("169.254"): + if ":" not in fake_ip: + fake_ip = f"{fake_ip}:27015" to_resolve, port = fake_ip.split(":") fake_ip = f"{resolve_hostname(to_resolve)}:{port}" start_session_helper(engine, steam_id, str(_session_id), demo_name, fake_ip, map)