Xray-core was forked from V2Ray (Project V) in 2020 by the XTLS project team. The primary motivation was to add XTLS, a novel transport that passes through inner TLS sessions without re-encrypting them, dramatically reducing CPU overhead while maintaining security. V2Ray's upstream eventually declined to merge XTLS, leading to the permanent fork. Xray-core now diverges from V2Ray in several areas: XTLS support, the Reality protocol, and performance optimizations that make it faster than V2Ray for equivalent workloads.
The Reality protocol is Xray's most significant addition over V2Ray. Reality solves a long-standing problem with VLESS+XTLS: a server running VLESS+XTLS needs a TLS certificate for a domain, and that domain is what the client presents in the TLS SNI field. Censorship systems can detect that the domain resolves to a VPS IP rather than the legitimate website's infrastructure, flagging it as a proxy. Reality replaces this with a mechanism where the client's TLS handshake targets a legitimate HTTPS server (any public HTTPS site you choose as a "steal" target), and the Xray server presents that site's actual TLS fingerprint and certificate during handshake, passing the connection through to the real site if authentication fails. This makes the traffic completely indistinguishable from a legitimate TLS connection to the target site, at the SNI, certificate, and fingerprint level simultaneously.
In practice, Reality-enabled Xray connections survive blocking attempts that defeat VLESS+XTLS and VMess+WebSocket+TLS. The GFW in China, which has the most sophisticated DPI and active probing infrastructure in the world, cannot distinguish an Xray+Reality connection from legitimate HTTPS traffic to major CDN-fronted services. For users in the most censored environments, Xray+Reality is currently the most effective tool available.
For less aggressive censorship environments (Russia, Iran, Turkey), VLESS+WebSocket+TLS or VMess+WebSocket+TLS through V2Ray achieves similar results with a simpler configuration. Choose Xray+Reality for maximum stealth against active probing; choose V2Ray+WebSocket+TLS for simpler deployment in moderately censored environments.