Skip to content

Commit 932c95c

Browse files
committed
Rename "Moonglade" to "Elf" in WebApplicationExtensions
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.
1 parent f6cdc8c commit 932c95c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/API/WebApplicationExtensions.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,15 +22,15 @@ void Prevent()
2222
app.Logger.LogError("Positive China detection, application stopped.");
2323

2424
app.MapGet("/", () => Results.Text(
25-
"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",
25+
"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",
2626
statusCode: 251
2727
));
2828
app.Run();
2929
}
3030

3131
if (app.Environment.IsDevelopment())
3232
{
33-
app.Logger.LogWarning("Current deployment is suspected to be located in China, Moonglade will still run on full functionality in development environment.");
33+
app.Logger.LogWarning("Current deployment is suspected to be located in China, Elf will still run on full functionality in development environment.");
3434
}
3535
else
3636
{

0 commit comments

Comments
 (0)