1
mirror of https://github.com/thepeacockproject/Peacock synced 2025-03-21 00:04:22 +01:00

chore: bump server versions

(cherry picked from commit c9e0b35272ac4a62da9399d6957eb6c21e0dd840)
This commit is contained in:
AnthonyFuller 2024-09-12 11:35:58 +01:00
parent 4a5afe3fda
commit 16ae9798c9
6 changed files with 7 additions and 7 deletions

@ -307,7 +307,7 @@ app.use(
break break
case "fghi4567xQOCheZIin0pazB47qGUvZw4": case "fghi4567xQOCheZIin0pazB47qGUvZw4":
case STEAM_NAMESPACE_2021: case STEAM_NAMESPACE_2021:
req.serverVersion = "8-16" req.serverVersion = "8-17"
break break
default: default:
res.status(400).json({ message: "no game data" }) res.status(400).json({ message: "no game data" })
@ -498,7 +498,7 @@ app.use(
} }
if ( if (
["6-74", "7-3", "7-17", "8-16"].includes( ["6-74", "7-3", "7-17", "8-17"].includes(
<string>req.serverVersion, <string>req.serverVersion,
) )
) { ) {

@ -33,7 +33,7 @@ import { SyncBailHook, SyncHook } from "../hooksImpl"
const menuSystemPreRouter = Router() const menuSystemPreRouter = Router()
const menuSystemRouter = Router() const menuSystemRouter = Router()
// /resources-8-16/ // /resources-8-17/
/** /**
* A class for managing the menu system's fetched JSON data. * A class for managing the menu system's fetched JSON data.

@ -45,7 +45,7 @@ function createUrlencodedBody(params: Record<string, string>): string {
const requestHeadersH3 = { const requestHeadersH3 = {
"User-agent": "G2 Http/1.0 (Windows NT 10.0; DX12/1; d3d12/1)", "User-agent": "G2 Http/1.0 (Windows NT 10.0; DX12/1; d3d12/1)",
Version: "8.15.0", Version: "8.17.0",
} }
const requestHeadersH2 = { const requestHeadersH2 = {

@ -110,7 +110,7 @@ async function extract(locationParent, jwt, gameVersion) {
"User-Agent": "G2 Http/1.0 (Windows NT 10.0; DX12/1; d3d12/1)", "User-Agent": "G2 Http/1.0 (Windows NT 10.0; DX12/1; d3d12/1)",
"Content-Type": "application/json", "Content-Type": "application/json",
Accept: "application/json, text/*, image/*, application/json", Accept: "application/json, text/*, image/*, application/json",
Version: gameVersion === "h1" ? "6.74.0" : "8.15.0", Version: gameVersion === "h1" ? "6.74.0" : "8.17.0",
Authorization: `bearer ${jwt}`, Authorization: `bearer ${jwt}`,
}, },
}) })

@ -422,7 +422,7 @@ async function extract(locationParent, jwt, apiUrl) {
"User-Agent": "G2 Http/1.0 (Windows NT 10.0; DX12/1; d3d12/1)", "User-Agent": "G2 Http/1.0 (Windows NT 10.0; DX12/1; d3d12/1)",
"Content-Type": "application/json", "Content-Type": "application/json",
Accept: "application/json, text/*, image/*, application/json", Accept: "application/json, text/*, image/*, application/json",
Version: "8.15.0", Version: "8.17.0",
Authorization: `bearer ${jwt}`, Authorization: `bearer ${jwt}`,
}, },
}) })

@ -2,7 +2,7 @@
"Versions": [ "Versions": [
{ {
"Name": "pc-prod", "Name": "pc-prod",
"GAME_VER": "8.15.0", "GAME_VER": "8.17.0",
"SERVER_VER": { "SERVER_VER": {
"Metrics": { "Metrics": {
"MetricsServerHost": "http://localhost", "MetricsServerHost": "http://localhost",