From 64ff246b5b28906bb888834279ae57291e955c7a Mon Sep 17 00:00:00 2001 From: Darkstack <1835601+darkstack@users.noreply.github.com> Date: Sun, 31 Jul 2022 02:26:07 +0200 Subject: [PATCH] Fix AllowedHosts --- LaDOSE.Src/LaDOSE.Api/Program.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(); } }