Conversation
|
@copilot XHTTP(SplitHTTP)、gRPC、WebSocket、HTTPUpgrade 被你吃了?? |
…date Co-authored-by: RPRX <63339210+RPRX@users.noreply.github.com>
Co-authored-by: RPRX <63339210+RPRX@users.noreply.github.com>
|
@Fangliding 话说这个为啥是 proxy/http/server.go |
|
@copilot 把这个功能移到 common/utils 包下面去 用 var ChromeUA = getChromeUA() 初始化一个导出的字符串 其他包直接用这个字符串就行 省去每次计算 |
plain http的正常处理流程 它要把收到的 plain http 请求头稍作修改传出去 其实这里不该改的 原样转发就好 是空就空着 |
|
@Fangliding 还有它对于 observatory 只改了 burst,普通的需要改吗还是说代码复用了 |
|
它用了个.get 估计bot用grep找的关键字没看到 等它弄完我改改吧 就三行 |
|
@copilot 撤回 proxy/http/server.go 的修改,而应当修改 HTTP proxy 的 client 除了 burst 外还要修改普通 observatory 的 UA,另外把两个 observatory 的 TLS 指纹都改为 uTLS Chrome |
…de/gRPC, revert proxy/http Co-authored-by: Fangliding <63339210+Fangliding@users.noreply.github.com>
Added User-Agent support for XHTTP (SplitHTTP), gRPC, WebSocket, and HTTPUpgrade in commit a7c0037.
Moved to |
Co-authored-by: Fangliding <63339210+Fangliding@users.noreply.github.com>
|
@copilot 顺便把你那 browserVersion() 改成 ChromeVersion() |
Co-authored-by: RPRX <63339210+RPRX@users.noreply.github.com>
Added User-Agent to HTTP proxy client and regular observatory in commit 0bb8481. Regarding TLS fingerprint: Observatory connections go through the outbound handler via |
Co-authored-by: RPRX <63339210+RPRX@users.noreply.github.com>
Renamed |
|
@copilot 不要以月计算了,Chrome 144 的发布日期为 2026.1.13,假设此后每 45 天发布一个新版本,用户升级周期也是
|
… (2026.1.13) Co-authored-by: RPRX <63339210+RPRX@users.noreply.github.com>
已修改为 45 天周期:Chrome 144 发布日期为 2026.1.13,此后每 45 天发布新版本,用户升级周期也是 1-45 天。Commit be9e60a。 |
|
|
|
@copilot 再次推倒重来,使用新策略,往上加:
|
…s from 2026.1.13 Co-authored-by: RPRX <63339210+RPRX@users.noreply.github.com>
|
|
|
|
|
|
… (overwriteable through config) (#5658) #4996 (comment) #5658 (comment) --------- Co-authored-by: RPRX <63339210+RPRX@users.noreply.github.com> Co-authored-by: Fangliding <63339210+Fangliding@users.noreply.github.com>
A popular Russian browser is called Yandex Browser. @hxehex created a TLS fingerprint for Yandex Browser (refraction-networking/utls#380). I helped improve and test it. However, my tests show that Yandex Browser has the same fingerprint as Google Chrome, which makes sense because Yandex Browser is based on the same engine. |
|
@paqx TLS 指纹一样是正常的,不过 HTTP UA 呢?比如 Edge 在 Chrome 的基础上加了 Edge 字样 |
|
@paqx Chrome 浏览器在俄罗斯的市占率如何, |
|
|
Sorry. I confused a TLS fingerprint and user-agent header. No, Google Chrome is quite popular. According to Yandex (https://radar.yandex.ru/browsers), it has a 31% market share in Russia. Yandex Browser has a 38% market share. However, there's a chance that the government might try to gradually push everyone toward using Yandex Browser, so the Yandex Browser user agent is a better option in Russia. Examples: |
|
|
|
伊朗的cloudflare流量90%以上被识别为bot,可能就是UA导致的, 如果Xray指定UA而SB和其他代理客户端没有,可能导致从Bot流量占比的变化推断Xray新客户端的占比 |
|
|
|
|
功能:为所有 HTTP 请求设置动态 Chrome User-Agent
将 Xray-core 中所有 HTTP 请求的 User-Agent 设为 Chrome 风格,版本号随日期动态变化。
主要改动
新增
common/utils/browser.goChromeVersion()函数计算当前 Chrome 版本号ChromeUA变量,启动时初始化一次,供其他包直接使用添加 User-Agent 的地方
app/dns/nameserver_doh.go- DoH 客户端app/observatory/burst/ping.go- Burst Observatoryapp/observatory/observer.go- 普通 Observatoryinfra/conf/transport_authenticators.go- RAW 的 HTTP 伪装proxy/http/client.go- HTTP 代理客户端transport/internet/grpc/dial.go- gRPCtransport/internet/httpupgrade/dialer.go- HTTPUpgradetransport/internet/reality/reality.go- REALITY 的 SpiderXtransport/internet/splithttp/config.go- XHTTP/SplitHTTPtransport/internet/tls/ech.go- ECH DNS 查询transport/internet/websocket/config.go- WebSocket附:uTLS Chrome 指纹使用情况总结
✅ 默认使用 uTLS Chrome 指纹
HelloChrome_AutoHelloChrome_AutoHelloChrome_AutoHelloChrome_Auto❌ 使用 Go 标准 TLS
Original prompt
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.