Repository navigation
Outbounds: Avoid circular dependencies with the built-in DNS - #7425
Conversation
|
|
this PR completely break "Serverless-for-Iran" and other serverless-configs. in "Serverless for Iran" we should use DOH-with-fragment to obtain correct DNS addresses. but DOH-domains are blocked in DNS, so we should use DOH IPs in Hosts: also there is no reason for normal users to use DOH in freedom, anyway programs like v2rayN automatically add a DNS-server-with-DOH-domain-with-IP-DNS to prevent this loop. when you use DOH in v2rayN, it automatically add: to DNS servers (other programs should do the same if they want supporting DOH in freedom). So, this is not a core problem, we should be able to use built-in-DNS (others/hosts) for DOH-domain. |
|
Also, this approach doesn't help when using Linux with TUN. Even with AsIs, AsIs-DNS request is still sent back to Xray-core. Therefore, we should still add a DNS server with the DoH domain and IP-based DNS, similar to v2rayN. |
|
|
|
…ging recursion risk
|
哎。。。又来了,因为伊朗“成千上万”人都在用所以不管不顾直接 close/reopen 完全不管这些烂玩意糊进去的恶劣影响,这么喜欢乱玩为什么不在自己的 fork 里瞎弄? 这个 PR 目的之一是让 targetStrategy 和 domainStrategy 行为一致,归根结底还是解决你弄出来的烂玩意 首先你应该学会尊重人 |
|
没心思折腾了,目前此 PR 暂时不切断 sockopt.domainStrategy 和 DNS 之间潜在的环,仅 log |
|
PR 保持原样,改本机 hosts、用 freedom.redirect 直接 close PR 神操作,你的主没教过你要尊重人吗? |
|
After all the effort I've put into "Serverless", someone is trying to ruin it. Do you expect me to just sit back and watch it get merged? I don’t know why no one ever complained when @Fangliding closed dozens of my PRs, even after I became a member. Also, this isn't just about "Serverless". So the right approach is to add an IP-based-DNS-server for DOH-domain, not to restrict the core's capabilities. In Also |
|
The existing DNS-avoid-loop restriction for So we should remove the restriction on please add Xray-core/app/dns/nameserver_doh.go Line 187 in 82b5b76 it's default can be true or false, it doesn't matter. This way, we can reach an agreement. |
…circular-dependency
麻烦你搞清楚,这是我和 @RPRX @Fangliding @KobeArthurScofield 前后花了五个月时间讨论 你唯一“贡献”就是把它强行糊进 Xray 里,然后恶心看文档的用户,和对着它反复改了好几版文档的我和 @Fangliding |
|
|
|
|
|
|
“友好协商”之后,就是各退一步,“成千上万”伊朗人都在用的 server-less-iran 不必变更配置 |
|
dns server如果本来就是ip形式,即使不是+local是不是没环,这种情况没必要打日志吧,以及域名形式的dns server如果在dns模块中配置了hosts是不是也不应该打日志 |
|
的确可以多判一下,但 hosts 没法做不能现在就给 dns 传 ctx |
Brings in XTLS/Xray-core up to 74cbdf4 (4 commits). XTLS's version is unchanged, so the fork's core/core.go stays 26.11.22. Includes: XMC finalmask Yggdrasil third-party login and texture verification (XTLS#7416), outbounds avoiding circular dependencies with the built-in DNS (XTLS#7425), the HTTPUpgrade client closing the connection when the upgrade fails (XTLS#7395) and a README update (XTLS#7446). No conflicts. XTLS#7395 is identical to the fork's early merge of it (cbf3dac), so transport/internet/httpupgrade/dialer.go is unchanged.
重写 Lua 文档的时候被迫写了下面加粗的这段,觉得十分不科学,应该把它做成和 targetStrategy 一样防环,没有大的副作用。各出站的行为也比较统一。