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 }; }