Skip to content

Commit

Permalink
Rename "Moonglade" to "Elf" in WebApplicationExtensions
Browse files Browse the repository at this point in the history
Updated terminology from "Moonglade" to "Elf" in the
WebApplicationExtensions class. This includes changes to the
message in the Prevent method and the warning log for the
development environment check, addressing legal and regulatory
concerns in China.
  • Loading branch information
EdiWang committed Nov 22, 2024
1 parent f6cdc8c commit 932c95c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/API/WebApplicationExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,15 @@ void Prevent()
app.Logger.LogError("Positive China detection, application stopped.");

app.MapGet("/", () => Results.Text(
"Due to legal and regulation concerns, we regret to inform you that deploying Moonglade on servers located in China (including Hong Kong) is currently not possible",
"Due to legal and regulation concerns, we regret to inform you that deploying Elf on servers located in China (including Hong Kong) is currently not possible",
statusCode: 251
));
app.Run();
}

if (app.Environment.IsDevelopment())
{
app.Logger.LogWarning("Current deployment is suspected to be located in China, Moonglade will still run on full functionality in development environment.");
app.Logger.LogWarning("Current deployment is suspected to be located in China, Elf will still run on full functionality in development environment.");
}
else
{
Expand Down

0 comments on commit 932c95c

Please sign in to comment.