mirror of
https://git.sanhost.net/sanasol/hytale-f2p
synced 2026-02-26 09:21:48 -03:00
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 <noreply@anthropic.com>
This commit is contained in:
@@ -231,11 +231,10 @@ class ClientPatcher {
|
|||||||
|
|
||||||
console.log(` Patching strategy: ${strategy.description}`);
|
console.log(` Patching strategy: ${strategy.description}`);
|
||||||
|
|
||||||
// MINIMAL PATCHING MODE - only patch what's essential for auth
|
// ULTRA-MINIMAL PATCHING - only domain, no subdomain patches
|
||||||
// Skip sentry (not needed for auth)
|
console.log(` Ultra-minimal mode: only patching main domain`);
|
||||||
console.log(` Skipping sentry patch (minimal mode)`);
|
|
||||||
|
|
||||||
// 1. Patch main domain (hytale.com -> mainDomain) - ESSENTIAL
|
// Only patch main domain (hytale.com -> mainDomain)
|
||||||
const domainResult = this.replaceBytes(
|
const domainResult = this.replaceBytes(
|
||||||
result,
|
result,
|
||||||
this.stringToLengthPrefixed(ORIGINAL_DOMAIN),
|
this.stringToLengthPrefixed(ORIGINAL_DOMAIN),
|
||||||
@@ -247,23 +246,8 @@ class ClientPatcher {
|
|||||||
totalCount += domainResult.count;
|
totalCount += domainResult.count;
|
||||||
}
|
}
|
||||||
|
|
||||||
// 2. Only patch sessions (essential for auth) - skip tools/telemetry
|
// Skip ALL subdomain patches - let them stay as sessions.hytale.com etc
|
||||||
const essentialSubdomains = ['https://sessions.', 'https://account-data.'];
|
console.log(` Skipping all subdomain patches (ultra-minimal mode)`);
|
||||||
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)`);
|
|
||||||
|
|
||||||
return { buffer: result, count: totalCount };
|
return { buffer: result, count: totalCount };
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user