Skip to content

Commit

Permalink
derp
Browse files Browse the repository at this point in the history
  • Loading branch information
megascatterbomb committed Sep 23, 2024
1 parent 58a8df6 commit 431cf8f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion masterbase/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 431cf8f

Please sign in to comment.