修改注释与说明

This commit is contained in:
xljiulang 2021-07-16 20:49:50 +08:00
parent c00430d6f4
commit 99646b8700
3 changed files with 9 additions and 7 deletions

View File

@ -65,9 +65,11 @@ namespace FastGithub.ReverseProxy
{ {
throw new Exception($"解析不到{domain}的ip"); throw new Exception($"解析不到{domain}的ip");
} }
// 如果解析到的ip为本机ip会产生反向代理请求死循环
if (address.Equals(IPAddress.Loopback)) if (address.Equals(IPAddress.Loopback))
{ {
throw new Exception($"dns受干扰解析{domain}的ip为{IPAddress.Loopback}"); throw new Exception($"dns受干扰解析{domain}的ip为{address}");
} }
return address; return address;
} }

View File

@ -1,14 +1,14 @@
{ {
"FastGithub": { "FastGithub": {
"TrustedDns": { // ip "TrustedDns": { //
"IPAddress": "127.0.0.1", "IPAddress": "127.0.0.1",
"Port": 5533 // 5533Ö¸Ïòdnscrypt-proxy "Port": 5533 // 5533Ö¸Ïòdnscrypt-proxy
}, },
"UnTrustedDns": { // ip "UnTrustedDns": { //
"IPAddress": "114.114.114.114", "IPAddress": "114.114.114.114",
"Port": 53 "Port": 53
}, },
"DomainMatches": [ // *0n "DomainMatches": [ // *0
"github.com", "github.com",
"githubstatus.com", "githubstatus.com",
"*.github.com", "*.github.com",

View File

@ -2,9 +2,9 @@
github加速神器 github加速神器
### 加速原理 ### 加速原理
* 修改本机的dns指向FastGithub自身 * 修改本机的dns服务指向FastGithub自身
* 解析github相关域名指向FastGithub自身 * 解析匹配的域名为FastGithub自身的ip
* 使用信任dns服务获取github真实ip无SNI反向代理到github * 请求信任的dns服务(dnscrypt-proxy)获取域名的ip并进行无SNI的https反向代理
### 程序下载 ### 程序下载
[下载最新发布版本](https://gitee.com/jiulang/fast-github) [下载最新发布版本](https://gitee.com/jiulang/fast-github)