update readme

This commit is contained in:
陈国伟 2021-11-06 10:03:10 +08:00
parent ba88a5b01d
commit 89088740ba
3 changed files with 17 additions and 43 deletions

View File

@ -74,16 +74,15 @@ namespace FastGithub.UI
/// </summary> /// </summary>
/// <returns></returns> /// <returns></returns>
private static void StartFastGithub() private static void StartFastGithub()
{ {
const string fileName = FASTGITHUB_PATH; if (File.Exists(FASTGITHUB_PATH) == false)
if (File.Exists(fileName) == false)
{ {
return; return;
} }
var startInfo = new ProcessStartInfo var startInfo = new ProcessStartInfo
{ {
FileName = fileName, FileName = FASTGITHUB_PATH,
Arguments = $"ParentProcessId={Process.GetCurrentProcess().Id} UdpLoggerPort={UdpLogger.Port}", Arguments = $"ParentProcessId={Process.GetCurrentProcess().Id} UdpLoggerPort={UdpLogger.Port}",
UseShellExecute = false, UseShellExecute = false,
CreateNoWindow = true CreateNoWindow = true

View File

@ -377,6 +377,8 @@ code {
<h4 id="21-windows-x64">2.1 windows-x64</h4> <h4 id="21-windows-x64">2.1 windows-x64</h4>
<ul> <ul>
<li>双击运行FastGithub.UI.exe</li> <li>双击运行FastGithub.UI.exe</li>
<li><code>fastgithub.exe start</code> // 以windows服务安装并启动</li>
<li><code>fastgithub.exe stop</code> // 以windows服务卸载并删除</li>
</ul> </ul>
<h4 id="22-linux-x64">2.2 linux-x64</h4> <h4 id="22-linux-x64">2.2 linux-x64</h4>
<ul> <ul>
@ -391,27 +393,13 @@ code {
<li>设置系统自动代理为<code>http://127.0.0.1:38457</code>或手动代理http/https为<code>127.0.0.1:38457</code></li> <li>设置系统自动代理为<code>http://127.0.0.1:38457</code>或手动代理http/https为<code>127.0.0.1:38457</code></li>
<li><a href="https://github.com/dotnetcore/FastGithub/blob/master/MacOSXConfig.md">具体配置详情</a></li> <li><a href="https://github.com/dotnetcore/FastGithub/blob/master/MacOSXConfig.md">具体配置详情</a></li>
</ul> </ul>
<h3 id="3-%E5%8A%A0%E9%80%9F%E5%8E%9F%E7%90%86">3 加速原理</h3> <h3 id="3-%E8%BD%AF%E4%BB%B6%E5%8A%9F%E8%83%BD">3 软件功能</h3>
<h4 id="31-windows">3.1 windows</h4> <ul>
<ol> <li>为配置域名提供纯净的DNS解析</li>
<li>客户端访问<code>https://github.com</code></li> <li>基于tcp连接测速的IP优选挑选最快的IP</li>
<li>客户端向dns查询github.com的ipFastGithub拦截dns数据包并伪造解析结果为127.0.0.1</li> <li>提供域名的tls连接自定义配置</li>
<li>客户端请求到FastGithub的<code>https://127.0.0.1:443</code></li> <li>google的CDN资源替换解决大量国外网站无法加载js和css的问题</li>
<li>FastGithub使用fastgithub.cer颁发服务器证书给客户端</li> </ul>
<li>FastGithub查询和计算github.com最快的ip</li>
<li>FastGithub与github.com进行无sni的tls连接</li>
<li>FastGithub将请求反向代理到<code>https://github.com</code></li>
</ol>
<h4 id="32-linuxosx">3.2 linux/osx</h4>
<ol>
<li>客户端访问<code>https://github.com</code></li>
<li>客户端使用fagithub的代理端口38457代理请求</li>
<li>FastGithub将代理的流量请求到自身的反向代理服务</li>
<li>FastGithub使用fastgithub.cer颁发服务器证书给客户端</li>
<li>FastGithub查询和计算github.com最快的ip</li>
<li>FastGithub与github.com进行无sni的tls连接</li>
<li>FastGithub将请求反向代理到<code>https://github.com</code></li>
</ol>
<h3 id="4-%E8%AF%81%E4%B9%A6%E9%AA%8C%E8%AF%81">4 证书验证</h3> <h3 id="4-%E8%AF%81%E4%B9%A6%E9%AA%8C%E8%AF%81">4 证书验证</h3>
<h4 id="41-git">4.1 git</h4> <h4 id="41-git">4.1 git</h4>
<p>git操作提示<code>SSL certificate problem</code></br> <p>git操作提示<code>SSL certificate problem</code></br>

View File

@ -23,24 +23,11 @@ github加速神器解决github打不开、用户头像无法加载、releases
* 设置系统自动代理为`http://127.0.0.1:38457`或手动代理http/https为`127.0.0.1:38457` * 设置系统自动代理为`http://127.0.0.1:38457`或手动代理http/https为`127.0.0.1:38457`
* [具体配置详情](https://github.com/dotnetcore/FastGithub/blob/master/MacOSXConfig.md) * [具体配置详情](https://github.com/dotnetcore/FastGithub/blob/master/MacOSXConfig.md)
### 3 加速原理 ### 3 软件功能
#### 3.1 windows * 为配置域名提供纯净的DNS解析
1. 客户端访问`https://github.com` * 基于tcp连接测速的IP优选挑选最快的IP
2. 客户端向dns查询github.com的ipFastGithub拦截dns数据包并伪造解析结果为127.0.0.1 * 提供域名的tls连接自定义配置
3. 客户端请求到FastGithub的`https://127.0.0.1:443` * google的CDN资源替换解决大量国外网站无法加载js和css的问题
4. FastGithub使用fastgithub.cer颁发服务器证书给客户端
5. FastGithub查询和计算github.com最快的ip
6. FastGithub与github.com进行无sni的tls连接
7. FastGithub将请求反向代理到`https://github.com`
#### 3.2 linux/osx
1. 客户端访问`https://github.com`
2. 客户端使用fagithub的代理端口38457代理请求
3. FastGithub将代理的流量请求到自身的反向代理服务
4. FastGithub使用fastgithub.cer颁发服务器证书给客户端
5. FastGithub查询和计算github.com最快的ip
6. FastGithub与github.com进行无sni的tls连接
7. FastGithub将请求反向代理到`https://github.com`
### 4 证书验证 ### 4 证书验证
#### 4.1 git #### 4.1 git