From 61941d50e535631cf6b579f2eaa36e6133cc4ff5 Mon Sep 17 00:00:00 2001 From: jester Date: Sat, 20 Dec 2025 18:06:12 +0000 Subject: [PATCH] Fix: Default portsNeeded to 1 for game containers Game containers always need at least 1 port for backend connectivity to Velocity proxy. Without this default, game provisioning skips port allocation entirely, breaking EdgePublisher and Velocity registration. --- src/api/handlers/provisionGame.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/api/handlers/provisionGame.js b/src/api/handlers/provisionGame.js index b2b1de1..4303561 100644 --- a/src/api/handlers/provisionGame.js +++ b/src/api/handlers/provisionGame.js @@ -1,4 +1,4 @@ -// src/api/provisionGame.js +// src/api/handlers/provisionGame.js // GAME-SIDE request normalization + validation (no payload changes yet) export function normalizeGameRequest(body = {}) { @@ -42,7 +42,7 @@ export function normalizeGameRequest(body = {}) { cpuCores, memoryMiB, diskGiB, - portsNeeded, + portsNeeded: portsNeeded || 1, // Default to 1 port for game containers artifactPath, javaPath,