← marzneshin
/
dashboard/src/modules/hosts/dialogs/mutation/profiles/general/mux-settings.schema.ts
/
blame
https://dev.kronoz.win/r/marzneshin.git
dashboard/src/modules/hosts/dialogs/mutation/profiles/general/mux-settings.schema.ts
· nightly
Source
| 1 | 4056c66 | Dawsh | 1y ago | import { z } from "zod"; |
| 2 | 4056c66 | Dawsh | 1y ago | |
| 3 | 4056c66 | Dawsh | 1y ago | export const MuxSettingsSchema = z.object({ |
| 4 | 4056c66 | Dawsh | 1y ago | protocol: z |
| 5 | 4056c66 | Dawsh | 1y ago | .enum(["mux_cool", "h2mux", "yamux", "smux"]) |
| 6 | 4056c66 | Dawsh | 1y ago | .default("mux_cool"), |
| 7 | 4056c66 | Dawsh | 1y ago | sing_box_mux_settings: z |
| 8 | 4056c66 | Dawsh | 1y ago | .object({ |
| 9 | 4056c66 | Dawsh | 1y ago | max_connections: z.number().nullable().optional(), |
| 10 | 4056c66 | Dawsh | 1y ago | max_streams: z.number().nullable().optional(), |
| 11 | 4056c66 | Dawsh | 1y ago | min_streams: z.number().nullable().optional(), |
| 12 | 4056c66 | Dawsh | 1y ago | padding: z.boolean().nullable().optional(), |
| 13 | 4056c66 | Dawsh | 1y ago | }) |
| 14 | 4056c66 | Dawsh | 1y ago | .nullable() |
| 15 | 4056c66 | Dawsh | 1y ago | .optional(), |
| 16 | 4056c66 | Dawsh | 1y ago | mux_cool_settings: z |
| 17 | 4056c66 | Dawsh | 1y ago | .object({ |
| 18 | 4056c66 | Dawsh | 1y ago | concurrency: z.number().nullable().optional(), |
| 19 | 4056c66 | Dawsh | 1y ago | xudp_concurrency: z.number().nullable().optional(), |
| 20 | 4056c66 | Dawsh | 1y ago | xudp_proxy_443: z |
| 21 | 4056c66 | Dawsh | 1y ago | .enum(["reject", "allow", "skip"]) |
| 22 | 4056c66 | Dawsh | 1y ago | .default("reject"), |
| 23 | 4056c66 | Dawsh | 1y ago | }) |
| 24 | 4056c66 | Dawsh | 1y ago | .nullable() |
| 25 | 4056c66 | Dawsh | 1y ago | .optional(), |
| 26 | 4056c66 | Dawsh | 1y ago | }); |