From 59a90f621c3d5a8c3a8b3860ec642aa1f8ae40d7 Mon Sep 17 00:00:00 2001 From: "Poulpe (Silver Surfer deploy)" Date: Mon, 20 Apr 2026 12:42:00 +0000 Subject: [PATCH] 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. --- builds/run_server.sh | 2 +- deploy/dauphincraft.service | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/builds/run_server.sh b/builds/run_server.sh index cb0835f..d2f1437 100644 --- a/builds/run_server.sh +++ b/builds/run_server.sh @@ -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" diff --git a/deploy/dauphincraft.service b/deploy/dauphincraft.service index ced6581..e9c940b 100644 --- a/deploy/dauphincraft.service +++ b/deploy/dauphincraft.service @@ -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