Skip to content

Unlock H2C Protocol for XHTTP #4875

Closed as not planned
Closed as not planned

Description

@gfw-killer

Hello
I use VMESS gRPC non-TLS but it's performance and stability is very bad and has no xmux
Please allow it to use XHTTP H2C by changing Stream-one/up protocol to HTTP/2 when is used without TLS
And remove XHTTP padding for non-TLS (as there is no TLS to fight against TLS in TLS)
Or like #3583 add protocol control option in XHTTP settings
Thank you

Activity

  1. Fangliding commented on Jul 8, 2025

    @Fangliding
    Member

    我觉得可以有 attemptH2c 设置为true之后客户端在无tls的情况下使用h2c 之前是go标准库不太方便现在已经有官方h2c支持了 看 @RPRX 怎么想
    不过必须提一句无tls的情况下xhttp有很明显的特征

  2. gfw-killer commented on Jul 8, 2025

    @gfw-killer
    Author

    I think there is no way to hide the characteristics of XHTTP+Packet-up+non-TLS
    except if Xray integerate Protocol and Transport to encrypt XHTTP parameters in the HTTP request body using VMESS (or the the future Encrypted VLESS)

    But for naked Stream-one mode, there should be a way to make it a little bit stealthy \
    Maybe removing the X_Padding from Referer header be enough, because non-TLS usage is only on Whitelisted IP ranges, or from User to domestic server, characteristic is not the most important thing in all situations, sometimes performance and stability of the transport is more important

  3. RPRX commented on Jul 8, 2025

    @RPRX
    Member

    这东西不安全,加选项麻烦,加了也没几个人用,况且用的人多的话问题更大,建议用 REALITY 解密后 VLESS fallbacks 就行了

  4. gfw-killer commented on Jul 8, 2025

    @gfw-killer
    Author

    Do you believe any encryption is NOT safe except TLS?
    And when Firewall block or limit TLS connections, people should stay disconnected?

  5. gfw-killer commented on Jul 8, 2025

    @gfw-killer
    Author

    Do you believe any encryption is NOT safe except TLS?

    I don't think so, that's why you want to add Encryption to VLESS
    And for safety of users, you said that you are going to enforce TLS on non-encrypted protocols like the current VLESS and Trojan, it was a good decition of you that you never implemented
    I support you for this ideas, but H2C has nothing to do with safety of users
    And also it's currently available by gRPC, if you don't want any non-TLS in Xray, then block them all and enforce TLS on all protocols and transports

  6. patterniha commented on Jul 8, 2025

    @patterniha
    Collaborator

    If you really want it for now, you can use MitM to decrypt tls, and then send decrypted data.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions