From 49a806fc2f1dac452ba93d272752584c3bb77906 Mon Sep 17 00:00:00 2001 From: Dennis van 't Hul Date: Sun, 16 Aug 2026 20:51:44 +0200 Subject: [PATCH] fix(ws): make the GeoIP database optional so a fresh clone starts The GeoLite2-City.mmdb is gitignored and absent in a fresh clone, but the reader was opened in a static initialiser, so the WebSocket controller failed static init and the server would not start. Open it in a try/catch and fall back to the lookup defaults when the file is missing. --- .../WebSocket/WebSocketController.cs | 42 +++++++++++++------ 1 file changed, 30 insertions(+), 12 deletions(-) diff --git a/GenOnlineService/Controllers/WebSocket/WebSocketController.cs b/GenOnlineService/Controllers/WebSocket/WebSocketController.cs index cd56f79..21ab9e0 100644 --- a/GenOnlineService/Controllers/WebSocket/WebSocketController.cs +++ b/GenOnlineService/Controllers/WebSocket/WebSocketController.cs @@ -47,8 +47,23 @@ public WebSocketController(LobbyManager lobbyManager, IDbContextFactory