Compare commits

..

1 Commits

Author SHA1 Message Date
sanasol
43a2b6d004 debug: disable DualAuth agent to test fastutil classloader issue
Temporarily skip -javaagent injection to determine if agent's
appendToBootstrapClassLoaderSearch() causes the fastutil
ClassNotFoundException on affected Windows systems.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-27 22:47:46 +01:00

View File

@@ -482,15 +482,11 @@ async function launchGame(playerNameOverride = null, progressCallback, javaPathO
} }
} }
// DualAuth Agent: Set JAVA_TOOL_OPTIONS so java picks up -javaagent: flag // DualAuth Agent: DISABLED for debug - testing fastutil classloader issue
// This enables runtime auth patching without modifying the server JAR // TODO: re-enable after testing
const agentJar = path.join(gameLatest, 'Server', 'dualauth-agent.jar'); const agentJar = path.join(gameLatest, 'Server', 'dualauth-agent.jar');
if (fs.existsSync(agentJar)) { if (fs.existsSync(agentJar)) {
const agentFlag = `-javaagent:"${agentJar}"`; console.log('DualAuth Agent: SKIPPED (debug build - fastutil classloader test)');
env.JAVA_TOOL_OPTIONS = env.JAVA_TOOL_OPTIONS
? `${env.JAVA_TOOL_OPTIONS} ${agentFlag} -Xshare:off`
: `${agentFlag} -Xshare:off`;
console.log('DualAuth Agent: enabled via JAVA_TOOL_OPTIONS');
} }
try { try {