Commit Graph
241 Commits
  • fix(inbound-form): wrap long labels and shorten RU pinned-cert label
    Long TLS-tab labels overflowed their field in locales with wider strings (e.g. Russian 'Pinned Peer Cert SHA-256'). Add AntD labelWrap to the inbound and outbound form modals so any over-long label wraps onto a second line instead of overflowing, and shorten the Russian pinnedPeerCertSha256 label to fit.
    
    Closes #4986
  • fix(finalmask): treat sudoku customTables as array of tables
    customTables is the plural array form of customTable, so default it to [""] and edit it with a tags Select instead of binding a text Input to an array value.
  • fix(outbound): import ech and pcs from TLS share links
    The vless/trojan link parser's TLS branch read only sni/fp/alpn, so the
    ech (echConfigList) and pcs (pinnedPeerCertSha256) query params were
    dropped on import even though buildStream allocates both fields. Read
    them in applySecurityParams to match the inbound link generator and the
    hysteria2 parser.
  • fix(external-proxy): relabel "Host" as "Address", add per-entry ECH (#4935)
    The external proxy "Host" field was bound to dest (the connection address that becomes the link host) but labeled "Host", misleading users into thinking it set a transport host header. Relabel it to "Address" to match what it actually controls.
    
    Add per-entry ECH (echConfigList) to the external proxy schema, form (shown under Force TLS = TLS), the TS link generator, and the Go sub services: ech is emitted on share links and vmess objects, and written into the stream so the JSON subscription picks it up via the existing tlsData reader.
  • fix(node): keep client/inbound edits working when a node is offline (#4923, #4931)
    Node-backed client and inbound edits no longer hard-fail when the backing node is offline or disabled. Edits commit to the panel DB immediately and reconcile to the node when it reconnects (eventual consistency); the panel is the single source of truth for desired config.
    
    - Add Node.ConfigDirty/ConfigDirtyAt; mark a node dirty when an edit commits without reaching it (cleared via CAS on ConfigDirtyAt after a full reconcile).
    - nodePushPlan() reads node state fresh from the DB, skips the push for offline/disabled nodes (no 10s hang), and treats push failures as non-fatal across every mutation path (client add/update/del + bulk + attach/detach; inbound add/update/del/toggle/resetTraffic).
    - ReconcileNode() pushes the panel's desired config to a node on reconnect (refreshing the remote tag cache first) and prunes node-side orphans; runs before the traffic pull in the node sync job.
    - While a node is dirty the traffic pull applies only up/down deltas and node-initiated disables, never overwriting desired config from a stale node snapshot.
    - Surface a non-blocking 'saved; will sync on reconnect' warning to the UI.
    
    Validated with a two-panel Docker E2E: client delete/update, attach/detach, and inbound add/delete all reconcile correctly offline -> reconnect.
  • fix(sub): include ECH config in TLS share links and JSON subscription
    echConfigList was stored under tlsSettings.settings but the share-link
    and JSON-subscription generators only read fingerprint and
    pinnedPeerCertSha256 from that bag, silently dropping ECH from VLESS,
    Trojan and VMess links. Read echConfigList alongside them and flatten it
    into tlsSettings.echConfigList for the JSON subscription.
    
    Closes #4933
  • feat(sub): modern xray JSON format with unified finalmask editor (#4912)
    * feat(sub): add finalmask support to JSON subscriptions
    
    * feat(sub): modern xray JSON format with unified finalmask editor
    
    Drop the legacy JSON subscription format entirely and always emit the
    modern xray shape:
    
    - Flatten proxy outbounds (no vnext/servers) for vless/vmess/trojan/
      shadowsocks; hysteria was already flat.
    - Express fragment/noise via streamSettings.finalmask instead of the
      legacy direct_out freedom dialer + dialerProxy sockopt.
    
    The global finalmask (tcp/udp masks + quicParams) is stored as a single
    setting (subJsonFinalMask) and merged into every generated stream,
    replacing the separate subJsonFragment/subJsonNoises/subJsonQuicParams
    settings.
    
    Reuse the existing FinalMaskForm (used by inbound/outbound) for the
    settings UI via a small bridge component; add a showAll prop so all
    TCP/UDP/QUIC sections render for the global case. This supersedes the
    hand-rolled Fragment/Noises/quicParams tabs with the full mask editor
    (all mask types).
    
    Note: this is a breaking change — JSON subscriptions now require a
    recent xray client on the consumer side.
    
    * fix
    
    ---------
    
    Co-authored-by: biohazardous-man <biohazardous-man@users.noreply.github.com>
    Co-authored-by: MHSanaei <ho3ein.sanaei@gmail.com>
  • feat(Clash): Add routing rules and enable routing option for Clash subscriptions (#4904)
    * feat(clash): add routing rules and enable routing option for Clash/Mihomo subscriptions
    
    Allows adding custom YAML blocks and placeholders to Clash exports.
    
    Why: Shifting routing to the client prevents server IP exposure for
    DIRECT traffic and reduces unnecessary server bandwidth/CPU usage.
    
    * fix
    
    ---------
    
    Co-authored-by: Misfit-s <>
  • perf(clients): scale add/delete and bulk client operations
    Follow-up to the SyncInbound bulk rewrite, fixing the remaining O(M*N)
    and O(M)-round-trip behaviour in the add/delete and bulk paths that made
    them time out on large inbounds (worst case minutes), especially on
    PostgreSQL.
    
    - compactOrphans: chunk the "email IN (...)" lookup (400/batch) instead
      of binding every email at once. A single huge IN exceeded PostgreSQL's
      65535-parameter limit (and SQLite's) and made the planner pathological,
      so add/delete failed outright past ~100k clients.
    
    - emailsUsedByOtherInbounds: new batched form used by delInboundClients
      (BulkDetach) and bulkDelInboundClients (BulkDelete), replacing a
      per-email global JSON scan (O(M*N)) with one scan, and skipped entirely
      when keepTraffic is set.
    
    - BulkCreate: rewritten to validate/dedup in one pass, then group clients
      by inbound and add them in a single addInboundClient call per inbound
      (one getAllEmailSubIDs, one settings rewrite, one SyncInbound) instead
      of running the full single-create pipeline per client.
    
    - Bulk delete/adjust: batch DelClientStat/DelClientIPs with IN deletes
      and wrap the settings Save + SyncInbound in one transaction, so the
      per-row writes share a single fsync instead of one per row.
    
    Measured on PostgreSQL 16 (one inbound, M=2000 affected clients):
      - create: 8m35s (M=500) -> ~1-5s
      - detach: 52s -> ~4s (flat in N)
      - delete: ~16s -> ~1-4s
      - adjust: ~20s -> ~7-10s
    add/delete of a single client on a 200k-client inbound stays in seconds.
    
    sync_scale_postgres_test.go adds skip-gated benchmarks (XUI_DB_TYPE=
    postgres) for the single add/delete and the five bulk operations.
  • feat(migrate-db): SQLite <-> .dump conversion and Download Migration in Overview
    Binary: extend the migrate-db subcommand with --dump and --restore so a
    SQLite database can be exported to a portable SQL text dump and rebuilt from
    one, alongside the existing --dsn PostgreSQL copy. Implemented in Go via the
    bundled sqlite driver (new database/dump_sqlite.go); no external sqlite3 client
    is required. Add ExportPostgresToSQLite (reverse of MigrateData) to build a
    SQLite .db from live PostgreSQL data, reusing the shared copyAllModels helper.
    
    Overview: add a "Download Migration" item to Backup & Restore plus a
    getMigration endpoint/service that returns a .dump on SQLite or a .db on
    PostgreSQL, so the data can seed a panel on the other backend. Document the
    endpoint in api-docs and translate the three new strings across all locales.
    
    Tests: cover the destination-side copy (AutoMigrate + copyTable into SQLite)
    and the dump/restore round-trip including quoted values. Ignore *.dump.
    
    The x-ui.sh helper that drives this from the CLI is in PR #4910.
  • fix(api-token): hash tokens at rest and show plaintext only once
    Store API tokens as SHA-256 hashes instead of plaintext and return the token value only in the create response. List no longer exposes the token, and the UI drops the Show/Copy buttons in favor of a one-time reveal modal at creation.
    
    Match hashes the presented bearer token before the constant-time compare, and a migration hashes any pre-existing plaintext rows in place so existing tokens keep authenticating. Docs and translations updated.
  • feat(xray): add connIdle and bufferSize policy controls
    Expose level-0 connection policies in the panel's Basics tab: idle timeout (connIdle) and per-connection buffer size (bufferSize). Empty fields delete the key so Xray falls back to its own defaults. Adds en-US/fa-IR strings and types policy.levels in the Zod schema.
  • feat(tls): add ocspStapling to certificate config
    Expose the OCSP Stapling refresh interval (seconds) on the TLS
    certificate object in the inbound security form, defaulting to 3600s
    to match xray-core. Covers both file-backed and inline cert shapes.
  • fix(nodes): Set Cert from Panel uses the node's own web cert for node inbounds
    For an inbound deployed to a node, the button read the central panel's webCertFile/webKeyFile and inserted paths that don't exist on the node, crashing the node's Xray on startup.
    
    Add a token-accessible GET /panel/api/server/getWebCertFiles that returns a panel's own web cert/key paths, Remote.GetWebCertFiles to fetch it from a node, and GET /panel/api/nodes/webCert/:id to proxy it. setCertFromPanel now calls the node endpoint for a node-assigned inbound and the local settings otherwise, warning instead of inserting wrong paths on error/empty.
    
    Fixes #4854
  • fix(online): scope per-inbound online to inbounds that carried traffic
    Multi-inbound clients showed online on every inbound they were attached to. Xray's user-level traffic stat aggregates across all inbounds a client belongs to, so the email signal alone can't say which inbound was used.
    
    Pair it with the inbound-level traffic signal under the same 20s grace and gate the per-inbound rollup on it: a client only shows online on inbounds that actually moved bytes this window. Remote nodes report no per-inbound activity and stay ungated (no regression). Adds GetActiveInboundsByNode, the activeInbounds WS field and POST /panel/api/clients/activeInbounds.
    
    Fixes #4859
  • fix(outbounds): preserve SNI/TLS settings on transport change
    Changing the transport in the outbound edit modal rebuilt streamSettings
    from scratch, dropping tlsSettings (and its serverName) while keeping
    security: 'tls'. On save xray received TLS with an empty SNI, so SNI-spoof
    tunnels connected but passed no traffic. Carry over tlsSettings/
    realitySettings when the new network still supports the security mode,
    via a new applyNetworkChange helper. Fixes #4791.
  • feat(sidebar): collapse to icon rail, expand on hover
    Sidebar is icon-only by default and expands as an overlay on hover, so the dashboard content underneath no longer reflows. Drops the persisted collapse state and the click trigger that conflicted with hover.
  • fix(panel-proxy): route custom geo and http(s) Telegram through panelProxy
    Custom geosite/geoip downloads built their own ssrfSafeTransport and never used the configured Panel Network Proxy, so geo updates failed on servers where GitHub is filtered. Route all custom-geo HTTP (startup probes + downloads) through panelProxy when set, falling back to the direct SSRF-guarded transport otherwise; the target URL stays SSRF-validated.
    
    The Telegram bot only honored a socks5:// panel proxy and silently rejected http(s)://, despite the setting advertising both. Branch the fasthttp dialer (FasthttpHTTPDialer for http(s), FasthttpSocksDialer for socks5) and accept all three schemes in the fallback and NewBot validation.
    
    Add tests proving the panel proxy is used by custom geo and that the bot dialer speaks HTTP CONNECT vs SOCKS5 per scheme.
  • feat(inbounds): per-proxy Pinned Peer Cert SHA-256 + labeled External Proxy form
    Redesign the Add Inbound -> Stream External Proxy section into labeled per-entry cards (Force TLS / Host / Port / Remark and, under TLS, SNI / Fingerprint / ALPN) and add a Pinned Peer Cert SHA-256 field with a generate-random-hash button to each entry.
    
    The pin flows end to end into share links: pcs for vmess/vless/trojan/ss (stripped when a proxy forces security off) and the hex-normalized pinSHA256 for Hysteria. JSON and Clash subscriptions emit the native pinnedPeerCertSha256 / pin-sha256 via the cloned stream. Adds the forceTls label across all 13 locales plus frontend and Go tests.
  • fix(clients): use client_inbounds link to resolve inbound, not stale id
    client_traffics.inbound_id is a legacy single-inbound pointer that goes stale when an inbound is deleted and recreated: the email-keyed traffic row survives but references a missing inbound. Code that resolved the owning inbound from it broke several client operations.
    
    - adjustTraffics: 'Start After First Use' (negative expiry) never converted to an absolute deadline on first traffic, so the countdown never started. Now resolves inbounds via the client_inbounds link and computes the new expiry once per email so multi-inbound clients stay consistent.
    
    - GetClientInboundByEmail / GetClientInboundByTrafficID: fall back to client_inbounds when the pointer is dead, fixing reset traffic ('record not found'), client info, and Telegram set-tgId.
    
    - autoRenewClients: resolve renew targets via client_inbounds so scheduled renews are not silently skipped.
    
    - clients page: allow resetting a client with no inbound attachment (the backend already zeroes counters by email).
    
    Add regression test for the delayed-start conversion under a stale inbound_id.
  • feat(dashboard): more System History metrics, persistence & localized labels
    - Sample swap %, TCP/UDP connection counts and disk-usage % on the host ticker
    - System History: Swap overlaid on the RAM tab, plus new Connections and Disk Usage tabs
    - Persist the host time-series across restarts: gob snapshot beside the DB, written on a timer and at shutdown, restored on boot
    - Live-refresh the open chart (2s for short ranges, 10s for longer)
    - Localize CPU/RAM/Swap and the new tab/chart titles across all 13 languages and route legend series names through i18n
  • feat(dashboard): richer System History & Xray Metrics charts
    - Collect disk read/write and network packet-rate metrics on the host sampler
    - Sparkline: optional 2nd/3rd overlaid series with a colored legend
    - System History: merge Bandwidth (up/down), Disk I/O (read/write) and Load (1m/5m/15m) into single multi-line tabs
    - Add a descriptive per-chart title and mobile-only tab icons to both modals
    - Localize every chart title and tab label across all 13 languages
  • feat(xray): merge basic routing into the routing rules section
    Move the basic routing presets (block torrent/IPs/domains, direct IPs/domains, IPv4) out of the Basics page into a Basic tab in the Routing section, next to the advanced Rules table; both edit the same routing.rules so existing rules stay in sync.
    
    Drop the WARP and Nord routing preset rows - WARP/Nord outbounds are still added from the Outbounds page and any existing rules remain editable in the Rules tab.
    
    Hide the Source and Balancers columns in the rules table when no rule populates them.
  • feat(settings): sidebar submenu nav for settings and xray with icon tabs
    Settings and Xray Configs are now expandable sidebar submenus that list their sections; clicking a section opens it via the URL hash (e.g. #general, #basic) and the in-page top tab bar is removed on both pages.
    
    Within each section the collapse groups become horizontal tabs, each with an icon; on mobile only the icon shows with the label in a tooltip, via a shared catTabLabel helper used by both settings and xray.
    
    Subscription Formats: the nested collapses in Fragment/Noises/Mux/Direct are replaced with a cleaner layout - framed field groups, and each noise is a card with a delete button plus a dashed add button.
    
    Xray: the Reset to Default button is now a solid danger button so its hover state is visible.
  • feat(settings): move the remark model control to the subscription tab
    Relocate Remark Model & Separation Character from the General/Panel tab to the Subscription tab's Information section, beside Show Info and Email in Remark, since it only governs how share-link remarks are composed. The sample preview uses concrete example values and renders the separator literally.
    
    Also drop the port from the subscription page link rows so each row shows just the inbound remark; the port still appears in the client QR modal and the client info modal.
  • feat(links): richer share-link labels across QR, client info and sub views
    Show colored protocol/transport/security tags followed by the inbound remark and port for each share link in the client QR modal, client info modal and subscription page. The client email and the traffic/expiry decorations are stripped from the remark so only the inbound remark and port remain.
    
    Consolidate the duplicated per-page parseLinkMeta/trimEmail/PROTOCOL_COLORS into a shared lib/xray/link-label.tsx (parseLinkParts, LinkTags, linkMetaText) so the colours and the email/stats stripping stay identical across all three surfaces.
  • fix(links): use configured domain for panel copy/QR links on loopback
    The panel's copy/QR share links are built client-side and fell back to window.location.hostname, so reaching the panel over an SSH tunnel (127.0.0.1/localhost) leaked localhost into the links - unlike the backend subscription path, which falls back to the configured Sub/Web Domain (issue #4829).
    
    Expose webDomain/subDomain via /defaultSettings and add preferPublicHost: when the browser host is loopback, prefer the configured Sub Domain (then Web Domain) for share/QR links. An explicit node override or per-inbound listen still wins; a routable browser host is kept as-is.
    
    Closes #4829
  • fix(hysteria2): emit pinSHA256 as hex in subscriptions, not base64
    Hysteria2 clients backed by Xray-core hex-decode the pinSHA256 URI param and crash on the base64 value the panel stores for pinnedPeerCertSha256 (xray-core native TLS format). Normalize each pin to bare lowercase hex when building the Hysteria link, accepting base64, bare hex, and colon-separated openssl fingerprints; values that are neither are passed through untouched. Applied in both the backend subscription generator and the frontend link builder. The pcs share-link and JSON-sub paths keep base64 for their consumers. Fixes #4818.
  • fix(online): scope online status per node instead of a global union
    The inbounds page and Nodes page checked each client's email against a
    single deduped union of every node's online clients, so a client connected
    to one node showed as online on every inbound across every node. The local
    online set was also derived from the email-keyed client_traffics.last_online
    column, which remote-node syncs bump too, leaking remote-only clients onto
    local inbounds.
    
    Track online clients per node: the local panel's own xray clients under key
    0 (derived from live traffic-poll deltas via RefreshLocalOnline, kept in
    memory and independent of the shared last_online column) and each remote
    node under its id. Add GetOnlineClientsByNode plus a /clients/onlinesByNode
    endpoint and onlineByNode WS field; node.go and the inbounds rollup now scope
    online by node. The flat GetOnlineClients union is kept for client-centric and
    total-count views (Clients page, dashboard, telegram).
    
    Closes #4809
  • fix(tls): correct pinned cert SHA-256 hint to hex, not base64
    xray-core hex-decodes pinnedPeerCertSha256 and the panel forwards the value as-is into share links and the JSON subscription, so clients hex-decode it too. The tooltip/placeholder wrongly said base64 (copied from the retired pinnedPeerCertificateChainSha256 field), and the "generate random hash" button emitted base64 via btoa, producing an unusable pin. Tooltip/placeholder now say hex across all locales and the generator emits hex.
    
    Closes #4793
  • feat(hysteria2): emit UDP port hopping in subscriptions and share links
    UDP Hop (finalmask.quicParams.udpHop.ports) was configurable but never surfaced in generated configs, so clients kept using the single listening port (#4789).
    
    Share links (frontend genHysteriaLink + sub genHysteriaLink) now keep a numeric port in the authority and carry the hop range as the v2rayN-compatible mport query param, so v2rayN and other System.Uri-based importers can parse the link. Clash output sets mihomos native ports field.
    
    Closes #4789
  • fix(settings): allow pagination size of 0 to disable pagination
    The pageSize setting described '(0 = disable)' and the inbounds table already treated 0 as show-all, but every validation layer enforced a minimum of 1. Relax the bound to gte=0 in the AllSetting struct tag (source of truth for the generated frontend schemas), regenerate zod, and lower the min on the hand-written schema and the InputNumber control.
  • feat(clients): show filtered count in clients list
    Surface a "Showing X of Y" counter in the clients filter bar that appears whenever a search term or any filter is active, using the server-provided filtered and total counts. Added the showingCount string across all 13 locales.
    
    Closes #4808
  • feat(clients,routing): label inbounds by remark with tag fallback
    Inbound pickers and chips across the Users area, the inbounds attach-clients modals, and the routing rule inbound-tags selector showed the auto-generated tag (in-443-tcp). Show the inbound remark when set, falling back to the tag.
    
    Only display labels change; option values keep using the inbound id (or tag for routing rules, which match inbounds by tag), so filtering, attaching, and saved rules are unaffected. Routing reads remarks via a shared useInboundOptions hook that reuses the existing options query cache.
  • fix(node): fix "invalid input" on save and gate save on connectivity
    The pinnedCertSha256 form field unmounts for non-pin TLS modes, so antd dropped it from the onFinish values and Zod rejected the missing string (the user-facing "invalid input"). Make it optional with a default so saving works in every TLS mode.
    
    Saving now runs the connection test first and only persists when the probe is online; the add/update endpoints enforce the same probe so an unreachable node cannot be stored via the API either.
    
    Selecting the http scheme forces TLS verify mode to skip and disables the control, normalized on open for existing http nodes.
    
    http-vs-https probe failures report a clear "set the node scheme to http" message across the test button, save, and the backend gate.
    
    Closes #4794
  • fix(clients): keep Add Client modal in viewport with internal scroll
    Open the modal near the top (top: 20) and let the body scroll internally (maxHeight + overflowY auto, overflowX hidden) so the tall vertical-layout form no longer leaves a large gap above and runs off the bottom.
  • fix(xray): clear dirty state after saving unchanged config
    Editing an outbound and re-saving it without real changes left the top Save button stuck enabled, and clicking it never cleared it. The form re-normalizes values into deeply-equal config, so react-query keeps the same configQuery.data reference on refetch and the seed effect that resets the dirty baseline never re-runs. Advance the baseline to the persisted value in saveMut.onSuccess instead of relying solely on the refetch.
  • feat(outbounds): pick dialerProxy from other outbound tags for proxy chaining
    Turn the outbound sockopt dialerProxy free-text input into a searchable Select populated with the other outbound tags, so users can build a proxy chain (route one outbound through another) without typing tags by hand. The list excludes the current outbound, so self-reference cycles cannot be selected. A tooltip and placeholder explain the chaining concept. Adds dialerProxyPlaceholder and dialerProxyHint to all 13 locales.
    
    Closes #4446
  • chore(generated): sync node types/zod with TLS verification fields (#4757)
    Regenerated frontend types from the model.Node change in the previous commit (adds tlsVerifyMode and pinnedCertSha256).
  • feat(nodes): add per-node TLS verification mode for self-signed certs (#4757)
    Adds a per-node TLS verification mode to the Add/Edit Node dialog so the panel can reach nodes that serve HTTPS with a self-signed certificate:
    
    - verify (default): normal CA validation.
    - skip: InsecureSkipVerify, with a clear UI warning that it drops MITM protection.
    - pin: validates the leaf certificate's SHA-256 (base64 or hex) via VerifyConnection while bypassing the default chain/name check — keeps MITM protection for self-signed certs, the secure alternative to skip.
    
    New Node model fields tlsVerifyMode + pinnedCertSha256 (gorm auto-migrated). Probe() selects the HTTP client per node via nodeHTTPClientFor, keeping the SSRF-guarded dialer. A new POST /panel/api/nodes/certFingerprint endpoint (FetchCertFingerprint) lets the UI fetch and pin the node's current certificate in one click. Endpoint documented in api-docs/openapi; i18n added across all locales. Verified end-to-end in Docker (verify rejects, skip bypasses, fetch matches, pin accepts correct / rejects wrong).
  • feat(inbounds): support Unix domain socket path in Listen field (#4429)
    UDS listen already worked for proxying (the listen string is passed to xray verbatim and port 0 is accepted), and the Go sub/link layer already ignores the bind listen. The only gap was the frontend resolveAddr, which would put a socket-path listen into share/sub links (e.g. vless://uuid@/run/xray/x.sock:0). resolveAddr now treats a path-style listen (starting with / or @) as having no client-reachable address and falls back to hostOverride/hostname. Adds a test and a Listen-field help hint across all locales.
  • fix(fallbacks): allow free-form dest entries for external servers (#4748)
    Since v3.1.0 every fallback row had to reference a panel inbound via childId, so rows with only a free-form dest (e.g. 8080 or 127.0.0.1:8080 to an external Nginx) were silently dropped at three layers: the frontend save filter, the backend SetByMaster guard, and BuildFallbacksJSON. A row is now valid when it has a child OR an explicit dest; self-references normalize to childId 0, and BuildFallbacksJSON prefers an explicit dest (also fixing rows whose child was deleted). UI gains allowClear on the child picker; help text updated across all locales. Verified end-to-end in Docker: a free-form dest fallback now persists and is injected into the live xray config. Refs #4554, #4639.
  • fix(raw): complete the HTTP header section for inbound and outbound
    Align both raw (TCP) transport forms with the Xray docs: request {version, method, path, headers} + response {version, status, reason, headers}. The outbound form was missing the request.path input, so panel-created outbounds were stuck on GET / and could not match a custom inbound path; add it with the same comma-separated array handling as the inbound. Also drop a stale inbound comment that claimed xray-core ignores the inbound request object, which contradicts both the code and the docs (request and response must match on both sides).
  • fix(inbounds): allow port 0 for UDS inbounds (#4783)
    Unix Domain Socket inbounds (listen path starting with /) use port 0, which xray-core ignores. Validation was hard-locked to a minimum of 1 in three places: the shared Zod PortSchema, the AntD InputNumber, and the Go Inbound model tag. Adds an InboundPortSchema (min 0) for the inbound form/API schemas, makes the port InputNumber min UDS-aware, and relaxes the Inbound model validate tag to gte=0. PortSchema and the Node model stay min 1.
  • fix(warp): persist client_id so WARP outbound gets reserved bytes (#4781)
    RegWarp now stores config.client_id from the Cloudflare registration, and WarpModal sources the reserved bytes from the live config response (falling back to stored creds). Previously reservedFor read an always-missing client_id, producing an empty reserved array.
  • fix(hysteria): use pinSHA256 for pinned cert and emit ech in share links
    Hysteria links now carry the pinned peer cert under the hysteria2-standard pinSHA256 key instead of pcs (frontend genHysteriaLink + outbound importer round-trip), and the Go subscription generator emits ech from echConfigList. Also drops the dead allowInsecure guard in genHysteriaLink, which read a field that does not exist on TlsClientSettings.