修改注释与说明
This commit is contained in:
parent
c00430d6f4
commit
99646b8700
@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -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": [ // *表示0到n个任意字符
|
"DomainMatches": [ // *表示0到多个任意字符
|
||||||
"github.com",
|
"github.com",
|
||||||
"githubstatus.com",
|
"githubstatus.com",
|
||||||
"*.github.com",
|
"*.github.com",
|
||||||
|
|||||||
@ -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)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user