From 899e9331fa48a37998fe33aeb68c61d7950629b9 Mon Sep 17 00:00:00 2001 From: CaitSith2 Date: Tue, 16 Nov 2021 11:00:36 -0800 Subject: [PATCH] Make /connect archipelago.gg:port reflect PATCH_TARGET. --- WebHostLib/__init__.py | 2 ++ WebHostLib/templates/hostRoom.html | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/WebHostLib/__init__.py b/WebHostLib/__init__.py index cfce8b05..13269dc0 100644 --- a/WebHostLib/__init__.py +++ b/WebHostLib/__init__.py @@ -171,6 +171,8 @@ def hostRoom(room: UUID): with db_session: room.last_activity = datetime.utcnow() # will trigger a spinup, if it's not already running + + room.server = app.config['PATCH_TARGET'] return render_template("hostRoom.html", room=room) diff --git a/WebHostLib/templates/hostRoom.html b/WebHostLib/templates/hostRoom.html index 24b7bbf1..9133cb75 100644 --- a/WebHostLib/templates/hostRoom.html +++ b/WebHostLib/templates/hostRoom.html @@ -20,7 +20,7 @@ later, you can simply refresh this page and the server will be started again.
{% if room.last_port %} - You can connect to this room by using '/connect archipelago.gg:{{ room.last_port }}' + You can connect to this room by using '/connect {{ room.server }}:{{ room.last_port }}' in the client.
{% endif %} {{ macros.list_patches_room(room) }} {% if room.owner == session["_id"] %}