Implemented a basic bot check

This commit is contained in:
Marcel Baumgartner
2023-09-18 18:58:32 +02:00
parent 73a07761f8
commit 9abd9d86b2
5 changed files with 64 additions and 10 deletions

View File

@@ -82,7 +82,7 @@ public class Startup
return;
}
if(ConfigService.DebugMode || uri.HostNameType == UriHostNameType.IPv4)
if(ConfigService.DebugMode || uri.HostNameType == UriHostNameType.IPv4 || !ConfigService.Get().Moonlight.LetsEncrypt.Enable)
await WebApplication.RunAsync();
else
await WebApplication.RunAsync(ConfigService.Get().Moonlight.AppUrl);