Fixed ip binding
This commit is contained in:
parent
d224f1e1bb
commit
8ac4fae9c1
1 changed files with 7 additions and 1 deletions
|
@ -75,8 +75,14 @@ public class Startup
|
|||
await PostInit();
|
||||
|
||||
Logger.Info("Done. Going live now!");
|
||||
|
||||
if (!Uri.TryCreate(ConfigService.Get().Moonlight.AppUrl, UriKind.RelativeOrAbsolute, out Uri uri))
|
||||
{
|
||||
Logger.Fatal("Invalid app url");
|
||||
return;
|
||||
}
|
||||
|
||||
if(ConfigService.DebugMode)
|
||||
if(ConfigService.DebugMode || uri.HostNameType == UriHostNameType.IPv4)
|
||||
await WebApplication.RunAsync();
|
||||
else
|
||||
await WebApplication.RunAsync(ConfigService.Get().Moonlight.AppUrl);
|
||||
|
|
Loading…
Add table
Reference in a new issue