query.php backwards compat

This commit is contained in:
Bitl 2022-08-05 13:43:53 -07:00
parent befe81c969
commit 21e1af249e
3 changed files with 20 additions and 3 deletions

View File

@ -140,8 +140,18 @@ namespace NovetusLauncher
string line;
while ((line = await reader.ReadLineAsync()) != null)
{
string[] initialLine = line.Split('|');
string DecodedLine = SecurityFuncs.Base64DecodeOld(initialLine[1]);
string DecodedLine = "";
try
{
string[] initialLine = line.Split('|');
DecodedLine = SecurityFuncs.Base64DecodeOld(initialLine[1]);
}
catch (Exception)
{
DecodedLine = SecurityFuncs.Base64DecodeOld(line);
}
string[] serverInfo = DecodedLine.Split('|');
GameServer gameServer = new GameServer(serverInfo[0], serverInfo[1], serverInfo[2], serverInfo[3], serverInfo[4]);
if (gameServer.IsValid())

View File

@ -1,3 +1,10 @@
1.3 Snapshot v22.8251.29664.1
Enhancements:
- Added backwards compatibility for master servers only using query.php. Master Server owners should still move to the new list/delist.php system.
Fixes:
- Fixed master server pings making the launcher/CMD unresponsive.
----------------------------------------------------------------------------
1.3 Snapshot v22.8251.28463.2
Fixes:
- Replaced numeric IDs and with string IDs. (composed of a random string + random number)

View File

@ -8,6 +8,6 @@ ExtendedVersionNumber=True
ExtendedVersionEditChangelog=True
//ExtendedVersionTemplate=%version% v?.2022.%extended-revision%%lite%
ExtendedVersionTemplate=%version% Snapshot v22.%build%.%revision%.%extended-revision%
ExtendedVersionRevision=2
ExtendedVersionRevision=1
IsLite=False
InitialBootup=False