老九 3 年之前
父節點
當前提交
01b2aec329
共有 6 個文件被更改,包括 13 次插入13 次删除
  1. 1 1
      Directory.Build.props
  2. 1 1
      FastGithub.HttpServer/HttpReverseProxyMiddleware.cs
  3. 2 2
      FastGithub/AppHostedService.cs
  4. 1 1
      FastGithub/Startup.cs
  5. 4 4
      README.html
  6. 4 4
      README.md

+ 1 - 1
Directory.Build.props

@@ -1,6 +1,6 @@
 <Project>
 <Project>
 	<PropertyGroup>
 	<PropertyGroup>
-		<Version>2.0.0-beta1</Version>
+		<Version>2.0.0-beta2</Version>
 		<Nullable>enable</Nullable>
 		<Nullable>enable</Nullable>
 		<Description>github加速神器</Description>
 		<Description>github加速神器</Description>
 		<Copyright>https://github.com/dotnetcore/FastGithub</Copyright>
 		<Copyright>https://github.com/dotnetcore/FastGithub</Copyright>

+ 1 - 1
FastGithub.HttpServer/HttpReverseProxyMiddleware.cs

@@ -79,7 +79,7 @@ namespace FastGithub.HttpServer
 
 
             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;
         }
         }
 
 

+ 2 - 2
FastGithub/AppHostedService.cs

@@ -35,7 +35,7 @@ namespace FastGithub
         public override Task StartAsync(CancellationToken cancellationToken)
         public override Task StartAsync(CancellationToken cancellationToken)
         {
         {
             var version = ProductionVersion.Current;
             var version = ProductionVersion.Current;
-            this.logger.LogInformation($"{nameof(FastGithub)}启动完成,当前版本为v{version},访问https://github.com/dotnetcore/FastGithub关注新版本");
+            this.logger.LogInformation($"{nameof(FastGithub)}启动完成,当前版本为v{version},访问 https://github.com/dotnetcore/fastgithub 关注新版本");
             return base.StartAsync(cancellationToken);
             return base.StartAsync(cancellationToken);
         }
         }
 
 
@@ -62,7 +62,7 @@ namespace FastGithub
                 await Task.Delay(TimeSpan.FromSeconds(1d), stoppingToken);
                 await Task.Delay(TimeSpan.FromSeconds(1d), stoppingToken);
                 if (await this.UseFastGithubProxyAsync() == false)
                 if (await this.UseFastGithubProxyAsync() == false)
                 {
                 {
-                    this.logger.LogWarning($"请设置系统自动代理为http://127.0.0.1:38457,或http/https手动代理为127.0.0.1:38457");
+                    this.logger.LogWarning($"请设置系统自动代理为http://127.0.0.1:38457,或手动代理http/https为127.0.0.1:38457");
                 }
                 }
             }
             }
         }
         }

+ 1 - 1
FastGithub/Startup.cs

@@ -64,7 +64,7 @@ namespace FastGithub
                 appBuilder.UseRouting();
                 appBuilder.UseRouting();
                 appBuilder.UseEndpoints(endpoint => endpoint.MapFallback(context =>
                 appBuilder.UseEndpoints(endpoint => endpoint.MapFallback(context =>
                 {
                 {
-                    context.Response.Redirect("https://github.com/dotnetcore/FastGithub");
+                    context.Response.Redirect("https://github.com/dotnetcore/fastgithub");
                     return Task.CompletedTask;
                     return Task.CompletedTask;
                 }));
                 }));
             });
             });

+ 4 - 4
README.html

@@ -379,14 +379,14 @@ code {
 <h4 id="22-linux-x64">2.2 linux-x64</h4>
 <h4 id="22-linux-x64">2.2 linux-x64</h4>
 <ul>
 <ul>
 <li>执行<code>sudo ./fastgithub</code></li>
 <li>执行<code>sudo ./fastgithub</code></li>
-<li>手工安装cacert/fastgithub.cer到受信任的根证书颁发机构</li>
-<li>手工设置系统自动代理为<code>http://127.0.0.1:38457</code>,或http/https手动代理为<code>127.0.0.1:38457</code></li>
+<li>安装cacert/fastgithub.cer到受信任的根证书颁发机构</li>
+<li>设置系统自动代理为<code>http://127.0.0.1:38457</code>,或手动代理http/https为<code>127.0.0.1:38457</code></li>
 </ul>
 </ul>
 <h4 id="23-macos-x64">2.3 macOS-x64</h4>
 <h4 id="23-macos-x64">2.3 macOS-x64</h4>
 <ul>
 <ul>
 <li>双击运行fastgithub程序</li>
 <li>双击运行fastgithub程序</li>
-<li>手工安装cacert/fastgithub.cer并设置信任</li>
-<li>手工设置系统自动代理为<code>http://127.0.0.1:38457</code>,或http/https手动代理为<code>127.0.0.1:38457</code></li>
+<li>安装cacert/fastgithub.cer并设置信任</li>
+<li>设置系统自动代理为<code>http://127.0.0.1:38457</code>,或手动代理http/https为<code>127.0.0.1:38457</code></li>
 </ul>
 </ul>
 <h3 id="3-%E8%AF%81%E4%B9%A6%E9%AA%8C%E8%AF%81">3 证书验证</h3>
 <h3 id="3-%E8%AF%81%E4%B9%A6%E9%AA%8C%E8%AF%81">3 证书验证</h3>
 <h4 id="31-git">3.1 git</h4>
 <h4 id="31-git">3.1 git</h4>

+ 4 - 4
README.md

@@ -12,13 +12,13 @@ github加速神器,解决github打不开、用户头像无法加载、releases
 
 
 #### 2.2 linux-x64
 #### 2.2 linux-x64
 * 执行`sudo ./fastgithub`
 * 执行`sudo ./fastgithub`
-* 手工安装cacert/fastgithub.cer到受信任的根证书颁发机构
-* 手工设置系统自动代理为`http://127.0.0.1:38457`,或http/https手动代理为`127.0.0.1:38457`
+* 安装cacert/fastgithub.cer到受信任的根证书颁发机构
+* 设置系统自动代理为`http://127.0.0.1:38457`,或手动代理http/https为`127.0.0.1:38457`
 
 
 #### 2.3 macOS-x64
 #### 2.3 macOS-x64
 * 双击运行fastgithub程序
 * 双击运行fastgithub程序
-* 手工安装cacert/fastgithub.cer并设置信任
-* 手工设置系统自动代理为`http://127.0.0.1:38457`,或http/https手动代理为`127.0.0.1:38457`
+* 安装cacert/fastgithub.cer并设置信任
+* 设置系统自动代理为`http://127.0.0.1:38457`,或手动代理http/https为`127.0.0.1:38457`
 
 
   
   
 ### 3 证书验证
 ### 3 证书验证