Skip to content

Commit

Permalink
direct dns
Browse files Browse the repository at this point in the history
  • Loading branch information
louiesun committed Jul 28, 2024
1 parent 72a6b74 commit 90e216a
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 2 deletions.
2 changes: 1 addition & 1 deletion default.aproj
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<project ver="10" name="Unofficial_Z_Access" libEmbed="true" icon="lib\icon.ico" ui="win" output="Unofficial_Z_Access.exe" CompanyName="MLM" FileDescription="Unofficial_Z_Access" LegalCopyright="Copyleft (C) People 2024" ProductName="Unofficial_Z_Access" InternalName="Unofficial_Z_Access" FileVersion="5.0.0.28" ProductVersion="5.0.0.28" publishDir="/dist/" dstrip="false" local="false" ignored="false">
<project ver="10" name="Unofficial_Z_Access" libEmbed="true" icon="lib\icon.ico" ui="win" output="Unofficial_Z_Access.exe" CompanyName="MLM" FileDescription="Unofficial_Z_Access" LegalCopyright="Copyleft (C) People 2024" ProductName="Unofficial_Z_Access" InternalName="Unofficial_Z_Access" FileVersion="5.0.0.30" ProductVersion="5.0.0.30" publishDir="/dist/" dstrip="false" local="false" ignored="false">
<file name="main.aardio" path="main.aardio" comment="main.aardio"/>
<folder name="资源文件" path="res" embed="true" local="false" ignored="false"/>
<folder name="web" path="web" comment="web" local="true" embed="true" ignored="false"/>
Expand Down
10 changes: 10 additions & 0 deletions dist/DOMAINconfig.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,20 @@ www.v2ray.com
www.mediafire.com
gfw.report

114.250.70.34
-www.recaptcha.net

13.107.139.11
^onedrive.live.com

87.250.250.50
^disk.yandex.com

104.19.112.154
www.pixiv.net
i.pximg.net
www.pximg.net
accounts.pixiv.net

104.19.112.156
stackpath.bootstrapcdn.com
Expand Down
5 changes: 5 additions & 0 deletions main.aardio
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,11 @@ if(_ARGV["d"])
d=string.slice(d,2,-1,true);
HostLine=HostLine+"MAP "+d+" "+IP+",";
}
else if(string.unpack(d,1,1)==string.unpack("-"))
{
d=string.slice(d,2,-1,true);
HostResolverLine=HostResolverLine+"MAP "+d+" "+IP+":443,";
}
else
{
HostResolverLine=HostResolverLine+"MAP "+d+" "+IP+":443,";
Expand Down
5 changes: 4 additions & 1 deletion web.src/help.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@

+ 如果是QUIC,直接写上来。
+ 如果是丢弃sni,在行首加上`^`。(这是因为严格上来讲丢弃sni是非正常做法,所以使用特殊标识)
+ 如果只是修改dns,在行首加上`-`

以下是一个可行的配置:(这两个IP分别是CloudFlare的IPv4与IPv6之一,为了演示分开)。

Expand All @@ -61,6 +62,9 @@ longlivemarxleninmaoism.online
zlib-articles.se
zh.zlib-articles.se
114.250.70.34
-www.recaptcha.net
172.64.145.17
www.pixiv.net
Expand Down Expand Up @@ -366,6 +370,5 @@ NETWORK_SWITCH(kHttp2EndStreamWithDataFrame, "http2-end-stream-with-data-frame")
本文档除引用的Chromium源码外部分按照[GFDL](https://www.gnu.org/licenses/fdl-1.3.html#license-text)提供。
[^1]: 比如说,`www.pixiv.net`和`pixiv.net`不一样,`z-library.se`和`zh.z-library.se`不一样。
4 changes: 4 additions & 0 deletions web/help.html
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ <h3 id="---"><code>-d</code></h3>
<ul>
<li>如果是 QUIC,直接写上来。</li>
<li>如果是丢弃 sni,在行首加上 <code>^</code>。(这是因为严格上来讲丢弃 sni 是非正常做法,所以使用特殊标识)</li>
<li>如果只是修改 dns,在行首加上 <code>-</code></li>
</ul>
<p>以下是一个可行的配置:(这两个 IP 分别是 CloudFlare 的 IPv4 与 IPv6 之一,为了演示分开)。</p>
<pre><code class="language-plaintext">[2606:4700:3033::ac43:aa46]
Expand All @@ -36,6 +37,9 @@ <h3 id="---"><code>-d</code></h3>
zlib-articles.se
zh.zlib-articles.se

114.250.70.34
-www.recaptcha.net

172.64.145.17
www.pixiv.net

Expand Down

0 comments on commit 90e216a

Please sign in to comment.