修改问题

This commit is contained in:
zpc 2024-11-28 16:41:25 +08:00
parent 9e8c8cfea8
commit 20cc01d934

View File

@ -26,7 +26,7 @@ public class SignMiddleware
public async Task InvokeAsync(HttpContext context, AppConfig appConfig)
{ // 读取请求体
context.Request.EnableBuffering();
if (context.Request.Method != "POST" || context.Request.Host.Host == "localhost")
if (context.Request.Method != "POST" || context.Request.Host.Host == "localhost" || context.Request.Host.Host == "192.168.1.23")
{
// 调用下一个中间件
await _next(context);