diff --git a/MareSynchronosServer/MareSynchronosServer/SystemInfoService.cs b/MareSynchronosServer/MareSynchronosServer/SystemInfoService.cs index 6a053fd..b0dcfe6 100644 --- a/MareSynchronosServer/MareSynchronosServer/SystemInfoService.cs +++ b/MareSynchronosServer/MareSynchronosServer/SystemInfoService.cs @@ -51,7 +51,7 @@ public class SystemInfoService : IHostedService, IDisposable var secondaryServer = Environment.GetEnvironmentVariable("SECONDARY_SERVER"); - if (secondaryServer == "0") + if (string.IsNullOrEmpty(secondaryServer) || secondaryServer == "0") { using var scope = _services.CreateScope(); using var db = scope.ServiceProvider.GetService()!;