fix: align local server authentication with launcher

This commit is contained in:
2026-08-15 09:25:11 +02:00
parent d315308c2f
commit d874b88b4e
2 changed files with 9 additions and 7 deletions
+6 -4
View File
@@ -35,9 +35,11 @@ scripts/install-mod-in-dev-server.sh
scripts/start-isolated-dev-server.sh scripts/start-isolated-dev-server.sh
``` ```
Der Testserver lauscht ausschließlich auf `127.0.0.1:5521` und nutzt dafür den Der Testserver lauscht ausschließlich auf `127.0.0.1:5521` und nutzt den
unsicheren lokalen Auth-Modus. Er ist weder für ein LAN noch für das Internet normalen Hytale-Authentifizierungsmodus, damit der Launcher-Client beitreten
geeignet. Zwei lokale Clients können damit den gemeinsamen, serverautoritativen kann. Bei der ersten Ausführung muss der Server einmal über `/auth login device`
Mod-Status prüfen. mit dem Hytale-Konto verknüpft werden. Er ist weder für ein LAN noch für das
Internet geeignet. Zwei lokale Clients können damit den gemeinsamen,
serverautoritativen Mod-Status prüfen.
Public releases require a documented policy/rights review; the repository never bundles Hytale server JARs, `Assets.zip`, extracted base assets or secrets. See the [fan-project policy](docs/UNOFFICIAL_FAN_PROJECT_POLICY.md), [third-party notice](THIRD_PARTY_NOTICE.md) and [implementation plan](docs/IMPLEMENTATION_PLAN.md). Public releases require a documented policy/rights review; the repository never bundles Hytale server JARs, `Assets.zip`, extracted base assets or secrets. See the [fan-project policy](docs/UNOFFICIAL_FAN_PROJECT_POLICY.md), [third-party notice](THIRD_PARTY_NOTICE.md) and [implementation plan](docs/IMPLEMENTATION_PLAN.md).
+3 -3
View File
@@ -1,8 +1,8 @@
#!/usr/bin/env bash #!/usr/bin/env bash
set -euo pipefail set -euo pipefail
# Local-only multiplayer test runtime. Insecure authentication is deliberately # Local-only multiplayer test runtime. It uses Hytale's normal authenticated
# restricted to loopback so two local clients can exercise shared state. # mode so the launcher client can join; bind remains loopback-only.
project_root="$(CDPATH= cd -- "$(dirname -- "${BASH_SOURCE[0]}")/.." && pwd -P)" project_root="$(CDPATH= cd -- "$(dirname -- "${BASH_SOURCE[0]}")/.." && pwd -P)"
runtime_root="${PROJECT_CAPTURE_DEV_SERVER:-$(CDPATH= cd -- "${project_root}/.." && pwd -P)/ProjectCapture-devserver}" runtime_root="${PROJECT_CAPTURE_DEV_SERVER:-$(CDPATH= cd -- "${project_root}/.." && pwd -P)/ProjectCapture-devserver}"
server_directory="${runtime_root}/Server" server_directory="${runtime_root}/Server"
@@ -18,6 +18,6 @@ exec java -Xmx4G -jar HytaleServer.jar \
--assets "${runtime_root}/Assets.zip" \ --assets "${runtime_root}/Assets.zip" \
--mods "${runtime_root}/mods" \ --mods "${runtime_root}/mods" \
--universe "${runtime_root}/universe" \ --universe "${runtime_root}/universe" \
--auth-mode insecure \ --auth-mode authenticated \
--bind 127.0.0.1:5521 \ --bind 127.0.0.1:5521 \
--disable-sentry --disable-sentry