ok, that works now

This commit is contained in:
Christopher Cookman 2024-01-31 21:30:48 -07:00
parent a2622fed35
commit fab0a9249b
Signed by: ChrisChrome
GPG key ID: A023A26E42C33A42

View file

@ -199,13 +199,15 @@ function checkServer(address) {
data.keywords.split("-") data.keywords.split("-")
data.address = address.split(":"); data.address = address.split(":");
data.serverInfo = splitKeyword(data.keywords); data.serverInfo = splitKeyword(data.keywords);
// Calculate outdated status, cant use less than anymore because of the way semver works and 1.10.0 appears as less than 1.9.9
outdated = semver.lt(data.serverInfo.version, serverList.highestVersion) ? true : false;
output = { output = {
"name": data.name, "name": data.name,
"address": data.address[0], "address": data.address[0],
"port": data.address[1], "port": data.address[1],
"password": data.visibility == 1 ? true : false, "password": data.visibility == 1 ? true : false,
"version": data.serverInfo.version, "version": data.serverInfo.version,
"outdated": data.serverInfo.version < serverList.highestVersion ? true : false, "outdated": outdated,
"dlc": data.serverInfo.dlc, "dlc": data.serverInfo.dlc,
"dlcString": data.serverInfo.dlcString, "dlcString": data.serverInfo.dlcString,
"tps": data.serverInfo.tps, "tps": data.serverInfo.tps,