Skip to content

Commit

Permalink
server mode actually gets a room id now (#42)
Browse files Browse the repository at this point in the history
  • Loading branch information
JessicaTegner authored Aug 7, 2024
1 parent 5fba6df commit cadf933
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,9 @@ private static void RunAsServer(int ServerPort)
string version = HttpUtility.ParseQueryString(RawUrl).Get("version");
if (version != null)
Info.Version = Int16.Parse(version);
string RoomId = HttpUtility.ParseQueryString(RawUrl).Get("roomid");
if (RoomId != null)
Info.RoomId = Int32.Parse(RoomId);
string password = HttpUtility.ParseQueryString(RawUrl).Get("password");
if (password != null)
Info.HostInfo = password;
Expand Down

0 comments on commit cadf933

Please sign in to comment.