hytopia 0.10.42 → 0.10.44
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/scripts.js +2 -2
- package/package.json +1 -1
- package/server.mjs +2 -2
package/bin/scripts.js
CHANGED
|
@@ -495,7 +495,7 @@ function checkHostsConfiguration(verbose = false) {
|
|
|
495
495
|
try {
|
|
496
496
|
content = fs.existsSync(hostsPath) ? fs.readFileSync(hostsPath, 'utf8') : '';
|
|
497
497
|
} catch {
|
|
498
|
-
console.warn(`⚠️ Unable to check hosts configuration. If you can connect to your local server you can ignore this. Otherwise, run 'sudo hytopia update-hosts' to fix
|
|
498
|
+
console.warn(`⚠️ Unable to check hosts configuration. If you can connect to your local server you can ignore this. Otherwise, run 'sudo hytopia update-hosts' to fix connectivity issues.`);
|
|
499
499
|
return; // no read access; skip silently
|
|
500
500
|
}
|
|
501
501
|
|
|
@@ -525,7 +525,7 @@ function checkHostsConfiguration(verbose = false) {
|
|
|
525
525
|
fs.writeFileSync(hostsPath, newContent, { encoding: 'utf8' });
|
|
526
526
|
console.log(`✅ Hosts updated: ${DOMAIN} -> 127.0.0.1, ::1`);
|
|
527
527
|
} catch {
|
|
528
|
-
console.error(
|
|
528
|
+
console.error(`🚨 Could not modify hosts file (${hostsPath}) to add the dev-local.hytopia.com. You MUST run 'sudo hytopia update-hosts' to fix connections to your local server.`);
|
|
529
529
|
}
|
|
530
530
|
}
|
|
531
531
|
|
package/package.json
CHANGED