Browse Source

stackoverflow优化

xljiulang 4 years ago
parent
commit
994099a7d2
2 changed files with 11 additions and 1 deletions
  1. 1 1
      FastGithub.ReverseProxy/ReverseProxyMiddleware.cs
  2. 10 0
      FastGithub/appsettings.json

+ 1 - 1
FastGithub.ReverseProxy/ReverseProxyMiddleware.cs

@@ -80,7 +80,7 @@ namespace FastGithub.ReverseProxy
 
 
             var baseUri = new Uri(defaultValue);
             var baseUri = new Uri(defaultValue);
             var result = new Uri(baseUri, destination).ToString();
             var result = new Uri(baseUri, destination).ToString();
-            this.logger.LogInformation($"[{defaultValue}->{result}]");
+            this.logger.LogInformation($"[{defaultValue} <-> {result}]");
             return result;
             return result;
         }
         }
 
 

+ 10 - 0
FastGithub/appsettings.json

@@ -66,6 +66,16 @@
           "ContentType": "text/plain;charset=utf-8",
           "ContentType": "text/plain;charset=utf-8",
           "ContentValue": "阻断的请求"
           "ContentValue": "阻断的请求"
         }
         }
+      },
+      "lh*.googleusercontent.com": {
+        "Response": {
+          "StatusCode": 404
+        }
+      },
+      "www.google.com": {
+        "Response": {
+          "StatusCode": 404
+        }
       }
       }
     }
     }
   },
   },