Commit Graph
4 Commits
  • fix(sub): carry REALITY ML-KEM hint in VLESS links (#6712)
    * fix(sub): carry REALITY ML-KEM hint in VLESS links
    
    Keep raw share links in parity with Clash subscriptions for Xray 26.9.8+. Preserve the URI hint through Go and frontend imports, expose it in the outbound editor, and update the documentation tooling.
    
    * fix(link): accept REALITY ML-KEM boolean aliases
    
    * test(frontend): isolate Happ preset notifications
    
    * fix(link): keep the ML-KEM hint out of Xray REALITY settings
    
    support-x25519mlkem768 is a Mihomo reality-opts option; xray-core's
    REALITYConfig (infra/conf/transport_security.go) has no such field and its
    JSON loader drops unknown keys silently. The PR also stored it as
    realitySettings.supportX25519Mlkem768 in Xray outbounds (form switch, Go and
    TS link import, docs outbound builders) and as an inbound settings default
    that is stripped before Xray and read by no link generator. The outbound
    switch therefore did nothing, and imported links carried a dead key into the
    JSON subscription.
    
    The share-link hint itself stays: Go, frontend and docs still emit
    support-x25519mlkem768=true on VLESS REALITY links and drop it on a TLS host
    override.
    
    ---------
    
    Co-authored-by: libmur-dev <333915961+libmur-dev@users.noreply.github.com>
    Co-authored-by: MHSanaei <ho3ein.sanaei@gmail.com>
  • fix(sub): bind JSON local inbounds to 127.0.0.1 and keep mux.cool off Vision outbounds (#6418)
    * fix(sub): bind JSON local inbounds to 127.0.0.1 and keep mux.cool off Vision outbounds
    
    The JSON subscription's local SOCKS/HTTP inbounds had no listen address, so
    every client that runs the profile verbatim bound an unauthenticated proxy on
    0.0.0.0, and iOS packet-tunnel clients could not reach it at all (Happ iOS:
    CONNECTED with zero traffic, same symptom as #6379 — on the same device the
    mixed inbound also worked once bound to 127.0.0.1). Bind both to loopback,
    which is what every client's own generated config does.
    
    The global subJsonMux was also applied to VLESS outbounds carrying
    xtls-rprx-vision. XTLS flows do not support mux.cool: Xray answers the mux
    handshake with "common/mux: unexpected network TCP" and the tunnel passes
    nothing, on every platform (verified with Happ iOS/Android/macOS, V2Box iOS
    and desktop Xray 26.6.27 against a 3x-ui 3.7.0 box with per-client traffic
    counters). Skip the mux block whenever the outbound carries a flow.
    
    Refs #6379
    
    * fix(sub): keep XUDP settings when disabling TCP mux on Vision outbounds
    
    Clearing the whole mux object also dropped xudpConcurrency, xudpProxyUDP443
    and any per-host muxParams override. Xray reads those only under
    mux.enabled, so set concurrency to -1 instead: TCP mux.cool (which XTLS flows
    reject) is off, XUDP and the UDP/443 policy stay. The test now decodes each
    outbound into a fresh map.
    
    ---------
    
    Co-authored-by: Farhan Zare <farhan.zare@openscreen.com>
  • docs: vendor the documentation site into the monorepo
    Fold the standalone 3x-ui-docs project (Next.js 16 + Fumadocs, deployed to
    docs.sanaei.dev) into docs/ so the panel and its documentation share a single
    source of truth, the way sing-box keeps its docs in-tree. The old repo becomes
    redundant and can be retired.
    
    - Import the full site under docs/ (app, components, content, lib, public,
      scripts, config). The self-contained pnpm project sits alongside the existing
      engineering notes with no filename collisions.
    - Re-point "Edit on GitHub" links from MHSanaei/3x-ui-docs to this repo's
      docs/content/docs path (docs/lib/shared.ts, docs/app/.../page.tsx).
    - Add docs-ci.yml and docs-deploy.yml under .github/workflows/, scoped to
      docs/** and run with working-directory: docs, since GitHub only runs
      workflows from the repo-root .github/. deploy-static.yml's GitHub Pages
      publish (CNAME docs.sanaei.dev) carries over unchanged.
    
    Follow-up (outside this commit): attach the docs.sanaei.dev custom domain to
    this repository's Pages (or set the Vercel project's root directory to docs),
    confirm the site is live from the monorepo, then delete MHSanaei/3x-ui-docs.