/v2ray-tcp-tls-web

v2Ray TCP+TLS+Web 一键脚本 (采用 DomainSocket)

Primary LanguageShellMIT LicenseMIT

v2ray tcp+tls+web

automated script for v2Ray (TCP+TLS+Web) 中文

Usage

bash <(curl -sL https://raw.githubusercontent.com/phlinhng/v2ray-tcp-tls-web/master/install.sh) && v2script

The above command will download the script, save it to /usr/local/bin/v2script, make it excutable and start it. To run the script again once installed, just use the following command:

v2script

TCP+TLS vs WS+TLS

  1. TCP+TLS has faster connection speed than WS+TLS benifit from that TCP is naturally faster than websocket
  2. TCP+TLS has lower delay by saving 1-RTT from ws handshaking
  3. TCP+TLS is not compatible with cloudflare free CDN plan as WSS does.

Note

tls-shunt-proxy can proxify websocket traffic but it is not compatible with CDN (and may not add support to this feature in forseeable future) so there is no benefit to use tls-shunt-proxy with ws. Please check @phlinhng/v2ray-caddy-cf instead if you prefer to set v2Ray in WS+TLS+WEB mode.

Related work

Credit