diff --git a/src/Tgstation.Server.Host/Core/ServerPortProivder.cs b/src/Tgstation.Server.Host/Core/ServerPortProivder.cs index 244836e5af..88602efa95 100644 --- a/src/Tgstation.Server.Host/Core/ServerPortProivder.cs +++ b/src/Tgstation.Server.Host/Core/ServerPortProivder.cs @@ -21,11 +21,14 @@ namespace Tgstation.Server.Host.Core var httpEndpoint = configuration .GetSection("Kestrel") - .GetSection("Endpoints") + .GetSection("EndPoints") .GetSection("Http") .GetSection("Url") .Value; + if (httpEndpoint == null) + throw new InvalidOperationException("Missing required configuration option for Kestrel:EndPoints:Http:Url!"); + HttpApiPort = GetPortFromAddress(httpEndpoint); }