diff --git a/frontend/src/pages/inbounds/form/transport/raw.tsx b/frontend/src/pages/inbounds/form/transport/raw.tsx index b1731514..f8d44d6d 100644 --- a/frontend/src/pages/inbounds/form/transport/raw.tsx +++ b/frontend/src/pages/inbounds/form/transport/raw.tsx @@ -56,13 +56,6 @@ export default function RawForm() { }} - {/* Per Xray docs (transports/raw.html#httpheaderobject), the - `request` object is honored only by outbound proxies; the - inbound listener reads `response`. Showing Host / Path / - Method / Version / request-headers on the inbound side was - a regression from this modal's earlier iteration — those - inputs wrote to the wire but xray-core ignored them. The - inbound modal now only exposes the response side. */} diff --git a/frontend/src/pages/xray/outbounds/transport/raw.tsx b/frontend/src/pages/xray/outbounds/transport/raw.tsx index 9ee64a80..18c646f7 100644 --- a/frontend/src/pages/xray/outbounds/transport/raw.tsx +++ b/frontend/src/pages/xray/outbounds/transport/raw.tsx @@ -47,6 +47,15 @@ export default function RawForm({ form }: { form: FormInstance {type === 'http' && ( <> + + + ({ value: Array.isArray(v) ? v.join(',') : v })} + getValueFromEvent={(e) => { + const raw = (e?.target?.value ?? '') as string; + const parts = raw.split(',').map((s) => s.trim()).filter(Boolean); + return parts.length > 0 ? parts : ['/']; + }} > - +