hsernos / Txray

xray 跨平台终端客户端 支持Windows linux Mac
379 stars 57 forks source link

Trojan tls: first record does not look like a TLS handshake #29

Open noobcoder6985666 opened 1 year ago

noobcoder6985666 commented 1 year ago

版本、系统及CPU架构

1.Txray Linux v3.0.7

2.Ubuntu 22.04.2 LTS x86-64, Windows 10 x86-64

  1. Xray-core 1.7.5

I can only connect to VLESS configurations with Txray, Trojan never works, But if i add the trojan configurations to xray and directly run Xray.service, they work. They also work on android with v2rayNG.

The error is "tls: first record does not look like a TLS handshake".

hsernos commented 1 year ago

Please provide details as instructed so I can reproduce the issue.

noobcoder6985666 commented 1 year ago

Screenshot from 2023-05-28 19-50-31 Screenshot from 2023-05-28 19-52-08

Screenshot from 2023-05-28 20-00-21

Screenshot from 2023-05-28 19-54-40

Xray.service works fine: Screenshot from 2023-05-28 20-15-57

hsernos commented 1 year ago

I can't reproduce this issue on Windows and Linux image

noobcoder6985666 commented 1 year ago

I can't reproduce this issue on Windows and Linux image

I saw in node info for Trojan protocol there is no Path(h2 path/grPC serviceName) or grPC mode or ALPN. I guess that's why.

noobcoder6985666 commented 1 year ago

Worked around the code and added those fields(similar to VLESS) to Trojan Protocol. It works now.