From f90e636d2d819da569e7ea35fa12256076021839 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E5=9B=BD=E4=BC=9F?= <366193849@qq.com> Date: Thu, 23 Sep 2021 13:33:15 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8F=96=E6=B6=88=E5=AE=A2=E6=88=B7=E7=AB=AFip?= =?UTF-8?q?=E5=88=A4=E6=96=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- FastGithub.HttpServer/RequestLoggingMilldeware.cs | 8 -------- 1 file changed, 8 deletions(-) diff --git a/FastGithub.HttpServer/RequestLoggingMilldeware.cs b/FastGithub.HttpServer/RequestLoggingMilldeware.cs index 1771311..2f416c7 100644 --- a/FastGithub.HttpServer/RequestLoggingMilldeware.cs +++ b/FastGithub.HttpServer/RequestLoggingMilldeware.cs @@ -4,7 +4,6 @@ using Microsoft.Extensions.Logging; using System; using System.Diagnostics; using System.IO; -using System.Net; using System.Text; using System.Threading.Tasks; @@ -48,13 +47,6 @@ namespace FastGithub.HttpServer var request = context.Request; var response = context.Response; var message = $"{request.Method} {request.Scheme}://{request.Host}{request.Path} responded {response.StatusCode} in {stopwatch.Elapsed.TotalMilliseconds} ms"; - - var client = context.Connection.RemoteIpAddress; - if (IPAddress.Loopback.Equals(client) == false) - { - message = $"{client} {message}"; - } - var exception = context.GetForwarderErrorFeature()?.Exception; if (exception == null) {