From 5b9db13e5574ecbc86cb7b4831e18ef2d4af7c9e Mon Sep 17 00:00:00 2001 From: MHSanaei Date: Sat, 6 Jun 2026 01:35:14 +0200 Subject: [PATCH] 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. --- frontend/src/lib/xray/forms/transport/FinalMaskForm.tsx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/frontend/src/lib/xray/forms/transport/FinalMaskForm.tsx b/frontend/src/lib/xray/forms/transport/FinalMaskForm.tsx index 457f9a85..2ae1da95 100644 --- a/frontend/src/lib/xray/forms/transport/FinalMaskForm.tsx +++ b/frontend/src/lib/xray/forms/transport/FinalMaskForm.tsx @@ -29,7 +29,7 @@ function defaultTcpMaskSettings(type: string): Record { return { packets: '1-3', length: '', delay: '', maxSplit: '' }; case 'sudoku': return { - password: '', ascii: '', customTable: '', customTables: '', + password: '', ascii: '', customTable: '', customTables: [''], paddingMin: 0, paddingMax: 0, }; case 'header-custom': @@ -228,7 +228,9 @@ function TcpMaskItem({ - + +