mirror of
https://git.sanhost.net/sanasol/hytale-f2p.git
synced 2026-02-26 14:51:48 -03:00
feat(patcher): Implement DualAuth patcher with enhanced server patching
- Introduce DualAuthPatcher with support for hybrid authentication - Update default auth domain to `auth.sanasol.ws` - Integrate Java detection and bundled JRE handling for patcher execution - Add server patch flag for avoiding redundant patching - Automate DualAuthPatcher setup: download, compile, and execute with dependencies - Enhance patching logic for extended logging and modularity
This commit is contained in:
@@ -4,7 +4,7 @@ const os = require('os');
|
||||
|
||||
|
||||
// Default auth domain - can be overridden by env var or config
|
||||
const DEFAULT_AUTH_DOMAIN = 'sanasol.ws';
|
||||
const DEFAULT_AUTH_DOMAIN = 'auth.sanasol.ws';
|
||||
|
||||
// Get auth domain from env, config, or default
|
||||
function getAuthDomain() {
|
||||
@@ -26,9 +26,10 @@ function getAuthDomain() {
|
||||
}
|
||||
|
||||
// Get full auth server URL
|
||||
// Domain already includes subdomain (auth.sanasol.ws), so use directly
|
||||
function getAuthServerUrl() {
|
||||
const domain = getAuthDomain();
|
||||
return `https://sessions.${domain}`;
|
||||
return `https://${domain}`;
|
||||
}
|
||||
|
||||
// Save auth domain to config
|
||||
|
||||
Reference in New Issue
Block a user