mirror of
https://git.sanhost.net/sanasol/hytale-f2p
synced 2026-02-26 14:01: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}`);
|
||||
|
||||
// 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 };
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user