修改问题
This commit is contained in:
parent
9e8c8cfea8
commit
20cc01d934
|
|
@ -26,7 +26,7 @@ public class SignMiddleware
|
||||||
public async Task InvokeAsync(HttpContext context, AppConfig appConfig)
|
public async Task InvokeAsync(HttpContext context, AppConfig appConfig)
|
||||||
{ // 读取请求体
|
{ // 读取请求体
|
||||||
context.Request.EnableBuffering();
|
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);
|
await _next(context);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user