mirror of
https://git.sanhost.net/sanasol/hytale-f2p
synced 2026-02-26 16:21:49 -03:00
fix: Disable sentry URL patching to prevent crash
The sentry URL string appears to be near executable code in the binary. Patching it may corrupt memory layout on glibc 2.41+ systems. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -238,20 +238,21 @@ class ClientPatcher {
|
|||||||
|
|
||||||
console.log(` Patching strategy: ${strategy.description}`);
|
console.log(` Patching strategy: ${strategy.description}`);
|
||||||
|
|
||||||
// 1. Patch telemetry/sentry URL
|
// 1. Patch telemetry/sentry URL - DISABLED: May cause crash on glibc 2.41+
|
||||||
const oldSentry = 'https://ca900df42fcf57d4dd8401a86ddd7da2@sentry.hytale.com/2';
|
// The sentry string is near executable code and patching it may corrupt memory layout
|
||||||
const newSentry = `${protocol}t@${domain}/2`;
|
// const oldSentry = 'https://ca900df42fcf57d4dd8401a86ddd7da2@sentry.hytale.com/2';
|
||||||
|
// const newSentry = `${protocol}t@${domain}/2`;
|
||||||
const sentryResult = this.replaceBytes(
|
// const sentryResult = this.replaceBytes(
|
||||||
result,
|
// result,
|
||||||
this.stringToLengthPrefixed(oldSentry),
|
// this.stringToLengthPrefixed(oldSentry),
|
||||||
this.stringToLengthPrefixed(newSentry)
|
// this.stringToLengthPrefixed(newSentry)
|
||||||
);
|
// );
|
||||||
result = sentryResult.buffer;
|
// result = sentryResult.buffer;
|
||||||
if (sentryResult.count > 0) {
|
// if (sentryResult.count > 0) {
|
||||||
console.log(` Patched ${sentryResult.count} sentry URL(s)`);
|
// console.log(` Patched ${sentryResult.count} sentry URL(s)`);
|
||||||
totalCount += sentryResult.count;
|
// totalCount += sentryResult.count;
|
||||||
}
|
// }
|
||||||
|
console.log(` Skipping sentry patch (stability fix)`);
|
||||||
|
|
||||||
// 2. Patch main domain (hytale.com -> mainDomain)
|
// 2. Patch main domain (hytale.com -> mainDomain)
|
||||||
const domainResult = this.replaceBytes(
|
const domainResult = this.replaceBytes(
|
||||||
|
|||||||
Reference in New Issue
Block a user