From b5324a67288258bbfd55423db368c6affaed3b29 Mon Sep 17 00:00:00 2001 From: HF Date: Sat, 24 Feb 2024 11:13:09 +0100 Subject: [PATCH] HARDCORE turkey defaulting to canvas 11 (Minimap) --- src/ssr/Main.jsx | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/ssr/Main.jsx b/src/ssr/Main.jsx index 15fba75b..db201fa0 100644 --- a/src/ssr/Main.jsx +++ b/src/ssr/Main.jsx @@ -26,13 +26,18 @@ function generateMainPage(req) { const host = getHostFromRequest(req, false); const shard = (host.startsWith(`${socketEvents.thisShard}.`)) ? null : socketEvents.getLowestActiveShard(); - const ssvR = JSON.stringify({ + const ssv = { availableStyles: getCssAssets(), langs, backupurl: BACKUP_URL, shard, lang, - }); + }; + // HARDCODE canasId 11 as default for turkey + if (req.headers['cf-ipcountry'] === 'TR') { + ssv.dc = '11'; + } + const ssvR = JSON.stringify(ssv); const scripts = getJsAssets('client', lang); /*