From 2efecd168f7e09e35010e6e2f5c2cd757eef678d Mon Sep 17 00:00:00 2001 From: sanasol Date: Tue, 27 Jan 2026 06:10:08 +0100 Subject: [PATCH] fix: Ultra-minimal patching - only main domain Only patch hytale.com -> anasol.ws Skip ALL subdomain patches (sessions, account-data, tools, telemetry, sentry) Testing if fewer patches = no crash. Co-Authored-By: Claude Opus 4.5 --- backend/utils/clientPatcher.js | 26 +++++--------------------- 1 file changed, 5 insertions(+), 21 deletions(-) diff --git a/backend/utils/clientPatcher.js b/backend/utils/clientPatcher.js index 3631777..a1dd704 100644 --- a/backend/utils/clientPatcher.js +++ b/backend/utils/clientPatcher.js @@ -231,11 +231,10 @@ class ClientPatcher { console.log(` Patching strategy: ${strategy.description}`); - // MINIMAL PATCHING MODE - only patch what's essential for auth - // Skip sentry (not needed for auth) - console.log(` Skipping sentry patch (minimal mode)`); + // ULTRA-MINIMAL PATCHING - only domain, no subdomain patches + console.log(` Ultra-minimal mode: only patching main domain`); - // 1. Patch main domain (hytale.com -> mainDomain) - ESSENTIAL + // Only patch main domain (hytale.com -> mainDomain) const domainResult = this.replaceBytes( result, this.stringToLengthPrefixed(ORIGINAL_DOMAIN), @@ -247,23 +246,8 @@ class ClientPatcher { totalCount += domainResult.count; } - // 2. Only patch sessions (essential for auth) - skip tools/telemetry - const essentialSubdomains = ['https://sessions.', 'https://account-data.']; - const newSubdomainPrefix = protocol + strategy.subdomainPrefix; - - for (const sub of essentialSubdomains) { - const subResult = this.replaceBytes( - result, - this.stringToLengthPrefixed(sub), - this.stringToLengthPrefixed(newSubdomainPrefix) - ); - result = subResult.buffer; - if (subResult.count > 0) { - console.log(` Patched ${subResult.count} ${sub} occurrence(s)`); - totalCount += subResult.count; - } - } - console.log(` Skipping tools/telemetry patches (minimal mode)`); + // Skip ALL subdomain patches - let them stay as sessions.hytale.com etc + console.log(` Skipping all subdomain patches (ultra-minimal mode)`); return { buffer: result, count: totalCount }; }