From 994099a7d2d013279efa384fdda457b01558a932 Mon Sep 17 00:00:00 2001 From: xljiulang <366193849@qq.com> Date: Tue, 20 Jul 2021 00:21:57 +0800 Subject: [PATCH] =?UTF-8?q?stackoverflow=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- FastGithub.ReverseProxy/ReverseProxyMiddleware.cs | 2 +- FastGithub/appsettings.json | 10 ++++++++++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/FastGithub.ReverseProxy/ReverseProxyMiddleware.cs b/FastGithub.ReverseProxy/ReverseProxyMiddleware.cs index 1c1cb21..413d258 100644 --- a/FastGithub.ReverseProxy/ReverseProxyMiddleware.cs +++ b/FastGithub.ReverseProxy/ReverseProxyMiddleware.cs @@ -80,7 +80,7 @@ namespace FastGithub.ReverseProxy var baseUri = new Uri(defaultValue); var result = new Uri(baseUri, destination).ToString(); - this.logger.LogInformation($"[{defaultValue}->{result}]"); + this.logger.LogInformation($"[{defaultValue} <-> {result}]"); return result; } diff --git a/FastGithub/appsettings.json b/FastGithub/appsettings.json index 696de65..2d458af 100644 --- a/FastGithub/appsettings.json +++ b/FastGithub/appsettings.json @@ -66,6 +66,16 @@ "ContentType": "text/plain;charset=utf-8", "ContentValue": "阻断的请求" } + }, + "lh*.googleusercontent.com": { + "Response": { + "StatusCode": 404 + } + }, + "www.google.com": { + "Response": { + "StatusCode": 404 + } } } },