From 89088740ba9b101c7a2fc9c37eac2f64c74344c0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E5=9B=BD=E4=BC=9F?= <366193849@qq.com> Date: Sat, 6 Nov 2021 10:03:10 +0800 Subject: [PATCH] update readme --- FastGithub.UI/Program.cs | 7 +++---- README.html | 30 +++++++++--------------------- README.md | 23 +++++------------------ 3 files changed, 17 insertions(+), 43 deletions(-) diff --git a/FastGithub.UI/Program.cs b/FastGithub.UI/Program.cs index f7d95ed..c993431 100644 --- a/FastGithub.UI/Program.cs +++ b/FastGithub.UI/Program.cs @@ -74,16 +74,15 @@ namespace FastGithub.UI /// /// private static void StartFastGithub() - { - const string fileName = FASTGITHUB_PATH; - if (File.Exists(fileName) == false) + { + if (File.Exists(FASTGITHUB_PATH) == false) { return; } var startInfo = new ProcessStartInfo { - FileName = fileName, + FileName = FASTGITHUB_PATH, Arguments = $"ParentProcessId={Process.GetCurrentProcess().Id} UdpLoggerPort={UdpLogger.Port}", UseShellExecute = false, CreateNoWindow = true diff --git a/README.html b/README.html index e51fd96..eabcc31 100644 --- a/README.html +++ b/README.html @@ -377,6 +377,8 @@ code {

2.1 windows-x64

2.2 linux-x64

-

3 加速原理

-

3.1 windows

-
    -
  1. 客户端访问https://github.com
  2. -
  3. 客户端向dns查询github.com的ip,FastGithub拦截dns数据包并伪造解析结果为127.0.0.1
  4. -
  5. 客户端请求到FastGithub的https://127.0.0.1:443
  6. -
  7. FastGithub使用fastgithub.cer颁发服务器证书给客户端
  8. -
  9. FastGithub查询和计算github.com最快的ip
  10. -
  11. FastGithub与github.com进行无sni的tls连接
  12. -
  13. FastGithub将请求反向代理到https://github.com
  14. -
-

3.2 linux/osx

-
    -
  1. 客户端访问https://github.com
  2. -
  3. 客户端使用fagithub的代理端口38457代理请求
  4. -
  5. FastGithub将代理的流量请求到自身的反向代理服务
  6. -
  7. FastGithub使用fastgithub.cer颁发服务器证书给客户端
  8. -
  9. FastGithub查询和计算github.com最快的ip
  10. -
  11. FastGithub与github.com进行无sni的tls连接
  12. -
  13. FastGithub将请求反向代理到https://github.com
  14. -
+

3 软件功能

+

4 证书验证

4.1 git

git操作提示SSL certificate problem
diff --git a/README.md b/README.md index 66284b3..5aa07d5 100644 --- a/README.md +++ b/README.md @@ -23,24 +23,11 @@ github加速神器,解决github打不开、用户头像无法加载、releases * 设置系统自动代理为`http://127.0.0.1:38457`,或手动代理http/https为`127.0.0.1:38457` * [具体配置详情](https://github.com/dotnetcore/FastGithub/blob/master/MacOSXConfig.md) -### 3 加速原理 -#### 3.1 windows -1. 客户端访问`https://github.com` -2. 客户端向dns查询github.com的ip,FastGithub拦截dns数据包并伪造解析结果为127.0.0.1 -3. 客户端请求到FastGithub的`https://127.0.0.1:443` -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` +### 3 软件功能 +* 为配置域名提供纯净的DNS解析; +* 基于tcp连接测速的IP优选,挑选最快的IP; +* 提供域名的tls连接自定义配置; +* google的CDN资源替换,解决大量国外网站无法加载js和css的问题; ### 4 证书验证 #### 4.1 git