-
Notifications
You must be signed in to change notification settings - Fork 4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Does uTLS change the cipher suites? #461
Comments
感谢测试,如果情况属实,则是非预期行为,但代码内对 uTLS 的调用似乎没有问题,uTLS 给出的例子如下: https://github.com/refraction-networking/utls#migrating-from-cryptotls 或许修改一下 |
Hello
To utlsConn := utls.UClient(conn, tls.CopyConfig(tlsConfig), fingerprint)
err = utlsConn.Handshake()
if err != nil {
return nil, err
}
conn = utlsConn This is probably a bad idea to initiate the handshake in This is really interesting because even If I send a message (I just used I will investigate more to see what happens... Edit: |
这的确非常神奇...应该和 Xray-core 其它地方的代码有关 |
So I found something else which might help. |
I did one more thing. At the first line of this function, I just wrote
And here is what happens: I will check if there is a good way to force the fingerprints before calling the |
ok,所以这里的问题是 uTLS 认为调用方会先调用 Write,而如果调用方先调用了 Read 则会进行普通 TLS 握手 我认为这属于 uTLS 的 bug,或许在他们进行修复之前,手动调用 Handshake 比较合适 |
So there are some ways I can currently think of to fix this bug:
|
Exactly I think this is true! |
@HirbodBehnam 感谢你的工作,我会先对代码进行适当的修改,同时你可以向 uTLS 反馈这个 bug 另外请帮忙测试一下 WSS Browser Dialer 在安卓上的表现,以及代理软件内置 WebView 的可行性 |
修复了此问题、优化了些代码,请测试 4bf8b6d https://github.com/XTLS/Xray-core/actions/runs/707998613 |
P.S: 怪不得 #212 调用了 |
Closed by 4bf8b6d. |
Thanks for the fast implementation! I can confirm that it is now working as intended! |
Hello
Thanks for the new uTLS update! But I have actually noticed that it doesn't affect the
cipher suites
while looking at it with wireshark.Is this intended?
Thanks
Edit:
Here is my config file:
I also used a simple print command to make sure that the program is reaching this line and it was reaching there.
The text was updated successfully, but these errors were encountered: