ssh.github.com:443不走https中间人攻击
This commit is contained in:
parent
c5aac25a47
commit
7791231775
@ -146,7 +146,7 @@ namespace FastGithub.HttpServer
|
|||||||
}
|
}
|
||||||
|
|
||||||
// 目标端口为443,走https代理中间人
|
// 目标端口为443,走https代理中间人
|
||||||
if (targetPort == HTTPS_PORT)
|
if (targetPort == HTTPS_PORT && targetHost != "ssh.github.com")
|
||||||
{
|
{
|
||||||
return new IPEndPoint(IPAddress.Loopback, HttpsReverseProxyPort.Value);
|
return new IPEndPoint(IPAddress.Loopback, HttpsReverseProxyPort.Value);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -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/https代理为127.0.0.1:38457或自动代理为http://127.0.0.1:38457");
|
this.logger.LogWarning($"请设置系统自动代理为http://127.0.0.1:38457,或http/https手动代理为127.0.0.1:38457");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -380,13 +380,13 @@ code {
|
|||||||
<ul>
|
<ul>
|
||||||
<li>执行<code>sudo ./fastgithub</code></li>
|
<li>执行<code>sudo ./fastgithub</code></li>
|
||||||
<li>手工安装cacert/fastgithub.cer到受信任的根证书颁发机构</li>
|
<li>手工安装cacert/fastgithub.cer到受信任的根证书颁发机构</li>
|
||||||
<li>手工设置系统http/https代理为<code>127.0.0.1:38457</code>或自动代理为<code>http://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>
|
||||||
</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>手工安装cacert/fastgithub.cer并设置信任</li>
|
||||||
<li>手工设置系统http/https代理为<code>127.0.0.1:38457</code>或自动代理为<code>http://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>
|
||||||
</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>
|
||||||
|
|||||||
@ -13,12 +13,12 @@ github加速神器,解决github打不开、用户头像无法加载、releases
|
|||||||
#### 2.2 linux-x64
|
#### 2.2 linux-x64
|
||||||
* 执行`sudo ./fastgithub`
|
* 执行`sudo ./fastgithub`
|
||||||
* 手工安装cacert/fastgithub.cer到受信任的根证书颁发机构
|
* 手工安装cacert/fastgithub.cer到受信任的根证书颁发机构
|
||||||
* 手工设置系统http/https代理为`127.0.0.1:38457`或自动代理为`http://127.0.0.1:38457`
|
* 手工设置系统自动代理为`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并设置信任
|
* 手工安装cacert/fastgithub.cer并设置信任
|
||||||
* 手工设置系统http/https代理为`127.0.0.1:38457`或自动代理为`http://127.0.0.1:38457`
|
* 手工设置系统自动代理为`http://127.0.0.1:38457`,或http/https手动代理为`127.0.0.1:38457`
|
||||||
|
|
||||||
|
|
||||||
### 3 证书验证
|
### 3 证书验证
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user