From 6b1da30df0677022c2659dea80794eb7145d6361 Mon Sep 17 00:00:00 2001 From: ImBenji Date: Thu, 28 Aug 2025 21:32:01 +0100 Subject: [PATCH] Fix external port configuration to handle null values in server registration --- lib/services/server_service.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/services/server_service.dart b/lib/services/server_service.dart index 8ccface..259b61d 100644 --- a/lib/services/server_service.dart +++ b/lib/services/server_service.dart @@ -28,7 +28,7 @@ class ServerService { Map requestBody = { 'server_id': fromEnivronment('SERVER_ID')!, - "port": int.tryParse(fromEnivronment('EXTERNAL_PORT')) ?? 3000, + "port": int.tryParse(fromEnivronment('EXTERNAL_PORT') ?? '') ?? 3000, 'registration_auth': registrationAuth, };