diff --git a/LaDOSE.Src/LaDOSE.Api/Program.cs b/LaDOSE.Src/LaDOSE.Api/Program.cs index cfc7cce..ca60380 100644 --- a/LaDOSE.Src/LaDOSE.Api/Program.cs +++ b/LaDOSE.Src/LaDOSE.Api/Program.cs @@ -37,7 +37,7 @@ namespace LaDOSE.Api return WebHost.CreateDefaultBuilder(args) .UseContentRoot(Directory.GetCurrentDirectory()) .UseConfiguration(config) - .UseKestrel(options => options.Listen(IPAddress.Any,int.Parse(config["Port"]))) + .UseKestrel(options => options.Listen(IPAddress.Parse(config["AllowedHosts"]), int.Parse(config["Port"]))) .UseStartup(); } }