TLS ECH无法使用 DOH(h2c) 查询 <img width="1920" height="1020" alt="{CA137595-EF13-48D2-8DD4-083B2C5C4A99}" src="https://github.com/user-attachments/assets/8b9d9bcb-ebd5-439d-b773-59014e81e512" /> _Originally posted by @j2rong4cn in https://github.com/XTLS/Xray-core/pull/6246#discussion_r3341430006_
Activity
[-]TLS ECH无法使用 DOH(h2c) 查询[/-][+][BUG] TLS ECH无法使用 DOH(h2c) 查询[/+]Fangliding commentedon Jun 3, 2026
它最开始被加上的目的是通过 freedom+tlssettings 来使用各种已经在tlssettings里定义的各种高级tls行为 不是传一个真的h2c://出去 改了反而会破坏本来的目的
j2rong4cn commentedon Jun 3, 2026
你看一下代码,就是直接传的h2c://到http.NewRequest,最终在http2.Transport的roundTripOpt方法直接报错了,根本到不了freedom
Xray-core/transport/internet/tls/ech.go
Lines 176 to 243 in fdb9b61
j2rong4cn commentedon Jun 3, 2026
看看内置dns的doh h2c
Xray-core/app/dns/nameserver_doh.go
Lines 39 to 46 in fdb9b61
Fangliding commentedon Jun 3, 2026
哦牛批当初那伊朗人bb了半天要这个功能结果根本没用落地了有bug完全用不了都不知道
Meo597 commentedon Jun 3, 2026
这集我看过
Fangliding commentedon Jun 3, 2026
带bug fix的话下次说清楚点吧
j2rong4cn commentedon Jun 3, 2026
ok,误会解除
TLS ECH: Handle "h2c://" query correctly (#6261)
Squashed commit of the following:
TLS ECH: Handle "h2c://" query correctly (#6261)