fix(deploy): use '--' separator so Godot passes --server to user args

Godot reads get_cmdline_user_args() which only contains args after '--'.
Without the separator, NetworkManager never saw --server and the
ENetMultiplayerPeer never bound UDP 7777.

Verified on 192.168.0.89: udp/7777 now listening.
This commit is contained in:
2026-04-20 12:42:00 +00:00
parent e78daa2a22
commit 59a90f621c
2 changed files with 2 additions and 2 deletions

View File

@@ -6,4 +6,4 @@ PORT="${1:-7777}"
BINARY_DIR="$(dirname "$(readlink -f "$0")")"
cd "$BINARY_DIR"
exec ./DauphinCraftServer.x86_64 --server --port "$PORT" --headless
exec ./DauphinCraftServer.x86_64 --headless -- --server --port "$PORT"

View File

@@ -7,7 +7,7 @@ Type=simple
User=dauphin
Group=dauphin
WorkingDirectory=/opt/dauphincraft
ExecStart=/opt/dauphincraft/DauphinCraftServer.x86_64 --server --port 7777 --headless
ExecStart=/opt/dauphincraft/DauphinCraftServer.x86_64 --headless -- --server --port 7777
Restart=always
RestartSec=5
StandardOutput=append:/var/log/dauphincraft.log