Skip to content

Commit 5ab5a75

Browse files
feat(xray-inbounds): add input for X-Padding Bytes in xhttp settings
1 parent eb69d38 commit 5ab5a75

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

dashboard/src/features/core-editor/components/xray/xray-inbounds-section.tsx

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3527,6 +3527,18 @@ export function XrayInboundsSection({ headerAddPulse, headerAddEpoch }: XrayInbo
35273527

35283528
{xPaddingObfsEnabled && (
35293529
<div className="grid gap-3 sm:grid-cols-2">
3530+
<FormItem>
3531+
<FormLabel className="text-xs font-medium">{t('hostsDialog.xhttp.xPaddingBytes', { defaultValue: 'X-Padding Bytes' })}</FormLabel>
3532+
<FormControl>
3533+
<Input
3534+
dir="ltr"
3535+
className="h-10 text-xs"
3536+
value={String(getTransportMetaValue(xhttpExtra, 'xpaddingbytes') ?? '')}
3537+
onChange={e => updateXhttpMeta('xpaddingbytes', e.target.value)}
3538+
/>
3539+
</FormControl>
3540+
</FormItem>
3541+
35303542
<FormItem>
35313543
<FormLabel className="text-xs font-medium">{t('hostsDialog.xhttp.xPaddingKey', { defaultValue: 'X-Padding Key' })}</FormLabel>
35323544
<FormControl>

0 commit comments

Comments
 (0)