Skip to content

feat: add VLESS proxy support (Xray-core bridge) - #211

Open
OGRYZOK-dev wants to merge 4 commits into
ProxyShard:mainfrom
OGRYZOK-dev:feat/vless-proxy-support
Open

OGRYZOK-dev wants to merge 4 commits into
ProxyShard:mainfrom
OGRYZOK-dev:feat/vless-proxy-support

Conversation

@OGRYZOK-dev

Copy link
Copy Markdown

Summary

Adds end-to-end VLESS proxy support across the desktop launcher, Rust backend (Xray-core managed local SOCKS5 bridge), HTTP automation client, live CDP proxy swapping, bulk/UI management, MCP server, OpenAPI spec, and i18n locales (en,
u, zh).

Architecture & Security

  • Managed local Xray-core SOCKS5 bridge (src-tauri/src/vless.rs):
    • Parses and builds strict single-outbound Xray configs (�less -> cp/ws/xhttp/grpc/httpupgrade/kcp with
      one/ ls/
      eality), with zero reedom/direct fallback outbounds.
    • Enforces Xray 26 compatibility: supports pinnedPeerCertSha256 (pcs) and �erifyPeerCertByName (�cn), fails cleanly on legacy �llowInsecure without pcs and on removed http/h2/h3/quic transports, and verifies downloaded Xray release archives against GitHub SHA-256 digests (digest / .dgst) before installation.
    • Refcounted VlessLease per canonical endpoint+config with socks5 readiness greetings (5 00), wedged-process detection/replacement, mid-session crash respawn supervisor, parent-tied process cleanup, and coordinated ExitRequested / �pp_reset teardown.
    • Skips direct can_send_udp_directly() host probing for VLESS bridges and uses anycast STUN fallback when host DNS fails.
  • Full Stack Parity & Integration:
    • Rust <-> TypeScript <-> OpenAPI wire parity (host wire rename + host_header legacy alias, case-insensitive query parsing, + base64 key preservation, [IPv6] formatting, xtls -> tls, ed WS early-data, splithttp -> xhttp, short_id & spider_x normalization).
    • Automation support: wreq "socks" feature + socks5h:// remote DNS resolution, long-lived VlessLease retention inside
      equests::SessionEntry, Team-space �ia: "profile" and �ia: "custom" UI/runner support, and proxy.swap / Traffic.setProxy live Tracker lease updates.
    • UI/UX & API: Edit dialog validation (UUID, REALITY pbk+sni, XHTTP JSON extra, pcs, paste/Enter/blur quick-paste, independent UUID visibility toggle), debounced draft �less_status(path) + strict missing custom binary error, Team save_proxy_for_binding + protected inline_proxy revision bumps, MCP �dd_proxy schema update, and VLESS mock fixtures.

Verification

  • Frontend:
    px tsc --noEmit,
    pm run lint (eslint . + check-allowlist.mjs),
    pm run check:i18n (3619 keys across en/
    u/zh),
    pm run check:errors,
    ode --test src/entities/proxy/lib/vless.test.ts (4/4),
    pm run test:scripts,
    pm run check:kit (43 files / 390 tests),
    pm run check:contrast (2416 pairs),
    pm run check:colors,
    pm run build (�ite build) - all passed.
  • Rust & Live Xray: cargo check --lib --features automation, �less::tests (4 pass, 1 ignored), space::local::proxy (15 pass), every_door_is_classified (1 pass), launch::tests (27 pass), �pi::tests (15 pass), process:: (17 pass), space::remote::tests (6 pass), widevine (2 pass, 2 ignored), and live_xray_vless_tcp_and_udp_roundtrip --ignored (downloads SHA-256-verified Xray 26.11.9, validates configs via xray run -test -c stdin:, and passes live HTTP TCP + SOCKS5 UDP_ASSOCIATE roundtrip + refcount teardown).

Pasting a subscription URL into Add proxies adds the subscription. A mix of links and proxy lines previews the proxies and adds the subscriptions with them. Editing a subscription stays on its card.

The quit warning now matches the VLESS backend text, and npm run check matches allowlists and Rust line continuations on Windows.

This branch has not been deployed

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant