mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-06-06 05:04:22 +00:00
XHTTP showed blank Selects for Session Placement / Sequence Placement /
Padding Method / Uplink HTTP Method (and several other knobs). Those
fields have a literal "" (empty string) value in the schema, which the
Select renders as "Default (path)" / "Default (repeat-x)" / etc.
The form field was `undefined`, not `""`, so the Select showed blank
instead of the labelled default option.
newStreamSlice in InboundFormModal hand-rolled per-network seed
objects with only a handful of fields. Replaced with
{Tcp,Kcp,Ws,Grpc,HttpUpgrade,XHttp}StreamSettingsSchema.parse({}) so
every default declared in the schema populates the form on network
switch. Same change in buildAddModeValues for the initial TCP state.
QUIC Params (FinalMaskForm) had the same shape on a smaller scale —
defaultQuicParams() only seeded congestion + debug + udpHop. The
schema's other fields are .optional() (no Zod default) so a schema
parse won't help. Hard-coded the xray-core / hysteria recommended
values (maxIdleTimeout 30, keepAlivePeriod 10, brutalUp/Down 0,
maxIncomingStreams 1024, four window sizes) so the InputNumber
controls render with usable starting values instead of blank.
|
||
|---|---|---|
| .. | ||
| AppSidebar.css | ||
| AppSidebar.tsx | ||
| DateTimePicker.css | ||
| DateTimePicker.tsx | ||
| FinalMaskForm.tsx | ||
| HeaderMapEditor.tsx | ||
| InfinityIcon.tsx | ||
| InputAddon.css | ||
| InputAddon.tsx | ||
| JsonEditor.css | ||
| JsonEditor.tsx | ||
| LazyMount.tsx | ||
| PromptModal.tsx | ||
| SettingListItem.css | ||
| SettingListItem.tsx | ||
| Sparkline.css | ||
| Sparkline.tsx | ||
| TextModal.tsx | ||